my problem is, that the math libary use a "RAD" calculation for sin and cos. How i can get the result in "DEG"
Anyone who know´s
Thanks Thorsten
Charlie U
Joined: 09 Sep 2003 Posts: 183 Location: Somewhere under water in the Great Lakes
Posted: Sun Apr 02, 2006 9:17 am
The sin and cosine functions use angles as arguments and they return a value between +1.0 and -1.0. Most calculators either take degrees as the argument or can be changed from degrees to radians. The conversion is 360 degrees equals 2*pi radians. So to convert degrees to radians divide your argument (in degrees) by 360 and multiply by 2*pi. pi = 3.14159265 and 2*pi = 6.28318531.
As an example we'll convert 45 degrees to radians:
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