This is an old version, view current version.

3.9 Trigonometric Functions

real hypot(real x, real y)
Return the length of the hypotenuse of a right triangle with sides of length x and y. hypot(x,y)={x2+y2if x,y0NaNotherwise

R cos(T x)
cosine of the angle x (in radians)

R sin(T x)
sine of the angle x (in radians)

R tan(T x)
tangent of the angle x (in radians)

R acos(T x)
principal arc (inverse) cosine (in radians) of x

R asin(T x)
principal arc (inverse) sine (in radians) of x

R atan(T x)
principal arc (inverse) tangent (in radians) of x, with values from π to π

real atan2(real y, real x)
Return the principal arc (inverse) tangent (in radians) of y divided by x, atan2(y,x)=arctan(yx)