When you calc with sin you get the result in radians.
What do I do, if i want to calc with sin, and get the result in grades.
Can it be done??
When you calc with sin you get the result in radians.
What do I do, if i want to calc with sin, and get the result in grades.
Can it be done??
what are grades? is that degrees? if so, you multiply the number in radians by 180/PI
Environment: OS X, GCC / G++
Codes: Java, C#, C/C++
AOL IM: neandrake, Email: neandrake (at) gmail (dot) com
grade or grad?
Conversion is 360° = 2pi rad = 400 grad, if this is what you are looking for. If not, more info please.
When i calc sin(65) on my calculater i'll get 0,90630778 and when I calc in c witg (rad) I get 0,826828.
Is not degrees, but when you are using the (one) cirkel with cosinus & sinus, i dont know the engelsk word for it).
You are using it, when you teach what sin & cos are, and there is a cirkel with radius 1.
Hope you can understand this..:-)
tx
Gugge
!G!
sin 90 degrees = 1.0
sin 100 grads = 1.0
sin 1.570796327 rads = 1.0
Where are you from?
circle = 360 degrees
circle = 400 grads
circle = 2 * pi rads = 6.283185307 rads
a rad is roughly 57.3 degrees
maybe u are just entering the values in DEGREES instead of entering the in RADIANS to the program;
sin(double radians); //where radians is the value of an angle but expressed in radian not in degrees, otherwise you will never get the right value back to u.
this macro should do u a big help:
#define _RAD(x) (x) *(0.017453292) //will convert degrees to radians, but you should write a function to do it for you; more secure and bug free.
Ünicode¬>world = 10.0£
tx foir all you answers i figured it out, and now my program i working prb...tx...
!G!