Re: Anyone around here fluent in ti83?
Quote:
Originally posted by deathstryke
I was just wondering. I tend to do most of my programming on it since it happens to be on me at all times and is thus more convenient than c++. I'm currently trying to make a program to handle the "ambiguous case of the law of sines" that I'm having difficulty with. Here's the code.
Code:
:Lbl {theta}
:0->A:0->B:0->C:0->E:0->F:0->G:0->H:0->{theta}
: Disp "SIDE?"
:Input A
: Disp "SIDE?"
:Input B
: Disp "ANGLE OPPOSITE SECOND SIDE?"
:Input {theta}
:A(sin({theta})->H
:If B<H
:Then
: Disp "NO SOLUTION"
:If B>H and A>B
:Then
:Goto A
:If B>H and A<B
:Then
:Goto B
:Lbl B
:asin((Asin(B))/B)->C
:180-({theta}+C)->D
: (Bsin(D))/sin({theta})->E
:ClrHome
: Disp "SOLUTIONS:"
: Disp "SIDE 1: "B
: Disp "ANGLE 1: "{theta}
: Disp "SIDE 2: "A
: Disp "ANGLE 2: "C
: Disp "SIDE 3: "E
: Disp "ANGLE 3: "D
:Pause
:ClrHome
:Goto {theta}
A(sin({theta})->H
You have too many open parenthesis here.
Also, whenever you have a Then, you should use an End to end the then. Kind of like { and } in C/C++. Then={ and End=}