Function reference · Trigonometry
cot
Computes the cotangent cos(x)/sin(x).
Exact sine and cosine values are combined where possible. Integer multiples of pi are undefined because the denominator vanishes.
Examples
These examples use Nerdamer Notation.
Use an exact special angle.
cot(pi/4) // → 1
Keep a symbolic cotangent.
cot(x)Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
cot(arg1)
nerdamer.cot
Call the operation through the default nerdamer import.
nerdamer.cot(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The angle in radians. |
Returns
Expression — The cotangent of `x`.
