c - cos result incorrect -
I import "math.h".
I can use the cos function, but when I execute cos (0.321139585333178)
result 0.948876
if If I use the calculator in Mac or use the normal calculator, then result 0.999984292347418
Can someone help me solve that problem?
= 0.99984292
= 0.948876326
- To change from radius to degree, multiply by 180 / π.
- To convert degrees from radians, multiply by π / 180.
Comments
Post a Comment