Python math

hi all,

can someone help me out here? I’ve no clue what i’m doing wrong.
the output of math.atan (1) = 0.78, while it should be 45.

See you expecting radians because I think that is what you get. 45 sounds like degrees

ah stupit, you’re right. Do i’ve to convert it myself or is there a simple method for?

You could use:
math.degrees(x)
Convert angle x from radians to degrees.

that helps, thanks! :slight_smile:

For other material on Python math this is quite useful
https://docs.python.org/2/library/math.html

4 Likes

ah this is perfect! thanks