Hello, I am writing a program to convert polar to rectangular coordinates and vice-versa. I have not found a way to find the arcsin of y/hyp in TI-BASIC. Thanks for any help.
TI uses sin^-1 to denote arcsin (and likewise for the other trigonometric and hyperbolic functions). You can access it via [2ND][sin(] or from the catalog under "S".
Maker of things. Co-founder of TI-Toolkit.
kg583 wrote:
TI uses sin^-1 to denote arcsin (and likewise for the other trigonometric and hyperbolic functions). You can access it via [2ND][sin(] or from the catalog under "S".
Would I use it like this in a TI-BASIC program?:
Code:
:sin^-1(Y/H)→O
JamesGernuck wrote:
Would I use it like this in a TI-BASIC program?:
Code:
Code:
:sin^-1(Y/H)→O
Yes. Closing parenthesis is optional.
Maker of things. Co-founder of TI-Toolkit.
[/quote]
Yes. Closing parenthesis is optional.[/quote]
Whenever I run this program I get an error saying "Variable used is not currently defined."
Code:
This is my first TI-BASIC program so sorry for all of the questions.
Yes. Closing parenthesis is optional.[/quote]
Whenever I run this program I get an error saying "Variable used is not currently defined."
Code:
:Input "X ",X
:Input "Y ",Y
:X*X+Y*Y→M
:√(M)→M
:Y/M→O
:sin^-1(O→O
:round(O,2)→O
:round(M,2)→M
:Disp "RESULT:"
:Disp "M",M
:Disp "O",O
This is my first TI-BASIC program so sorry for all of the questions.
No problem, it's good to ask questions! We recommend that you don't use the Y variable inside TI-BASIC programs: there's a bug in the OS on some calculator models that resets it to Y. You can also use the [x²] key to insert a squared symbol, and turn your third line from X*X+Y*Y->M to X²+Y²->M - in fact no reason not to combine that with the next line, and do √(X²+Y²->M. Other than that, your program doesn't appear to use any undefined variables.
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement