acos
Compute the inverse cosine of a value in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — The arc cosine of x
Examples
acos(0.5)
acos(cos(2.3))
acosh
Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic arccosine of x
acot
Calculate the inverse cotangent of a value.
Parameters
| Name | Type | Description |
| x | number | BigNumber| Complex | Function input |
Returns
number | BigNumber| Complex — The arc cotangent of x
Examples
acot(0.5)
acot(cot(0.5))
acot(2)
acoth
Calculate the inverse hyperbolic tangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic arccotangent of x
Examples
acoth(2)
acoth(0.5)
acsc
Calculate the inverse cotangent of a value.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — The arc cosecant of x
Examples
acsc(2)
acsc(csc(0.5))
acsc(0.5)
acsch
Calculate the inverse hyperbolic cosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic arccosecant of x
asec
Calculate the inverse secant of a value.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — The arc secant of x
Examples
asec(0.5)
asec(sec(0.5))
asec(2)
asech
Calculate the inverse secant of a value.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic arcsecant of x
asin
Compute the inverse sine of a value in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — The arc sine of x
Examples
asin(0.5)
asin(sin(0.5))
asinh
Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic arcsine of x
atan
Compute the inverse tangent of a value in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — The arc tangent of x
Examples
atan(0.5)
atan(tan(0.5))
atan2
Computes the principal value of the arc tangent of y/x in radians.
Parameters
| Name | Type | Description |
| y | number | Array | Matrix | Second dimension |
| x | number | Array | Matrix | First dimension |
Returns
number | Array | Matrix — Four-quadrant inverse tangent
Examples
atan2(2
2) / pi
angle = 60 deg in rad
x = cos(angle)
y = sin(angle)
atanh
Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic arctangent of x
cos
Compute the cosine of x in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Unit | Function input |
Returns
number | BigNumber | Complex — Cosine of x
Examples
cos(2)
cos(pi / 4) ^ 2
cos(180 deg)
cos(60 deg)
sin(0.2)^2 + cos(0.2)^2
cosh
Compute the hyperbolic cosine of x in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic cosine of x
cot
Compute the cotangent of x in radians. Defined as 1/tan(x)
Parameters
| Name | Type | Description |
| x | number | Complex | Unit | Array | Matrix | Function input |
Returns
number | Complex | Array | Matrix — Cotangent of x
Examples
cot(2)
1 / tan(2)
coth
Compute the hyperbolic cotangent of x in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic cotangent of x
Examples
coth(2)
1 / tanh(2)
csc
Compute the cosecant of x in radians. Defined as 1/sin(x)
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Unit | Function input |
Returns
number | BigNumber | Complex — Cosecant of x
Examples
csc(2)
1 / sin(2)
csch
Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic cosecant of x
Examples
csch(2)
1 / sinh(2)
sec
Compute the secant of x in radians. Defined as 1/cos(x)
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Unit | Function input |
Returns
number | BigNumber | Complex — Secant of x
Examples
sec(2)
1 / cos(2)
sech
Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic secant of x
Examples
sech(2)
1 / cosh(2)
sin
Compute the sine of x in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Unit | Function input |
Returns
number | BigNumber | Complex — Sine of x
Examples
sin(2)
sin(pi / 4) ^ 2
sin(90 deg)
sin(30 deg)
sin(0.2)^2 + cos(0.2)^2
sinh
Compute the hyperbolic sine of x in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic sine of x
tan
Compute the tangent of x in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Unit | Function input |
Returns
number | BigNumber | Complex — Tangent of x
Examples
tan(0.5)
sin(0.5) / cos(0.5)
tan(pi / 4)
tan(45 deg)
tanh
Compute the hyperbolic tangent of x in radians.
Parameters
| Name | Type | Description |
| x | number | BigNumber | Complex | Function input |
Returns
number | BigNumber | Complex — Hyperbolic tangent of x
Examples
tanh(0.5)
sinh(0.5) / cosh(0.5)