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".
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:
``` :sin^-1(Y/H)→O ```

Yes. Closing parenthesis is optional.
[/quote]
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.

»
» 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