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,y≥0NaNotherwise
Available since 2.0
R
hypot
(T1 x, T2 y)
Vectorized implementation of the hypot
function
Available since 2.25
R
cos
(T x)
cosine of the angle x (in radians)
Available since 2.0, vectorized in 2.13
R
sin
(T x)
sine of the angle x (in radians)
Available since 2.0, vectorized in 2.13
R
tan
(T x)
tangent of the angle x (in radians)
Available since 2.0, vectorized in 2.13
R
acos
(T x)
principal arc (inverse) cosine (in radians) of x
Available since 2.0, vectorized in 2.13
R
asin
(T x)
principal arc (inverse) sine (in radians) of x
Available since 2.0
R
atan
(T x)
principal arc (inverse) tangent (in radians) of x, with values from
−π/2 to π/2
Available since 2.0, vectorized in 2.13
real
atan2
(real y, real x)
Return the principal arc (inverse) tangent (in radians) of y divided
by x, atan2(y,x)=arctan(yx)
Available since 2.0, vectorized in 2.13