Wilang Documentation1.0.0+4

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.

Example
sin(pi/2)
cos(60 deg)
tan(45 deg)

Inverse functions#

asin, acos, atan, and atan2 return a plain number in radians. Attach the rad unit before you convert it.

Example
asin(0.5)
(asin(0.5) rad) to deg
atan2(1,1)

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:

Example
sinh(1)
cosh(1)^2 - sinh(1)^2

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.

All functions · Plotting