Why does many programming langues work in radians? It's seems a little counter intuitive and hard to visualize in my opinion, and many beginner's (including my own) questions have to do with not knowing that they return and take arguments in radians.
Edit:
I understand how radians are useful and can be better than degrees, but why in programming? This relies on irrational number constants stored in computers, instead of integers.
When using built in functions, we assume the computer knows that 3.14159265
is close enough to pi that cos
and sin
will return proper values, but there is still a lot of room for rounding errors, but it isn't an issue with degrees.
As well as this, 270 has an exact representation in binary, 3*pi/2 is an irrational number and can therefore only be approximated to a certain precision.