Trigonometry#
Radians and angle units#
A bare number is a radian angle. The direct trig functions also accept an explicit unit, such as deg or rad.
sin(pi/2)
cos(60 deg)
tan(45 deg)Interactive examples could not load. You can still copy the expressions.
Inverse functions#
asin, acos, atan, and atan2 return a plain number in radians. Attach the rad unit before you convert it.
asin(0.5)
(asin(0.5) rad) to deg
atan2(1,1)Interactive examples could not load. You can still copy the expressions.
Reciprocal and hyperbolic functions#
sec, csc, cot, and their inverses are the reciprocals of sine, cosine, and tangent. The hyperbolic set is sinh, cosh, tanh, sech, csch, coth, and their inverses. The identity below is the check that the hyperbolic functions are working:
sinh(1)
cosh(1)^2 - sinh(1)^2Interactive examples could not load. You can still copy the expressions.
An argument outside the real domain can return a complex result or fail outright under Predictable settings. Each function reference carries its own editable example.