Sine Rule calculation.
Hmm, bit stuck on the Sine rule in C.
This is my statement to work out Sin A of the sine rule ;
Now I need to inverse sine that statement, but I can't work out how to do it.
SinA1 = ((Sina * sin(SinB * PI /180)) / Sinb) ;
I tried ;
But it miserably failed.
SinA1 = asin(((Sina * sin(SinB * PI /180)) / Sinb)) * PI / 180) ;
And by miserably failed you mean what, exactly? (Notice that having variables called SinB and Sinb is just a bad idea, not to mention the fact that one of them appears to not be a sin at all, but an angle, while the other one appears to not be a sin at all, but a side.)
As in it gave me a wrong answer, variables are named like that as they refer to the part of the program it is used in. Ie I know that A is an angle, and a is a side.
So you should probably do your * PI / 180 in an appropriate place, then. (As in after you have an angle, not before.)