I completely forgot how to do this crap. Do any of you remember? I'm working on a program that needs to solve angles of a triangle. I'm messing around with the Math.Sin/Cos/Tan functions and they're always giving me numbers that are way off what they should be. I must be doing something wrong.
Basically, it's for a right triangle, so all I need is to solve for angleA.
In other words, say you have a right triangle with sides 5, 5, and 7 (7.07 to be more specific). Obviously, that's going to be 45 degrees, 45 degrees, and 90 degrees, but how would you find that out mathematically from using the lengths of the sides?
the part of the program in a nutshell:
have the variables: sideA, sideB, and sideC
angleA = <insert help here>
angleB = 180 - (90 + angleA)
angleC = 90
Solving triangle angles
Moderator: Dictators in Training
thats overcomplicating things for a right triangle though, you can just use your basic trig functions
the way i was taught to remember was SOH CAH TOA, Sin=Opposite/Hypotenuse, Cos=Adjacent/Hypotenuse, and Tan=Opposite/Adjacent
those work just fine when you have a right triangle. If you don't, then you have to use the law of cosines or law of sines to find it
the way i was taught to remember was SOH CAH TOA, Sin=Opposite/Hypotenuse, Cos=Adjacent/Hypotenuse, and Tan=Opposite/Adjacent
those work just fine when you have a right triangle. If you don't, then you have to use the law of cosines or law of sines to find it





