Function reference · Trigonometry

cot

Returns the cotangent, cos(x)/sin(x).

At multiples of π, where sine is zero, it throws an error.

Notation

cot(x)

Write it in an expression: nerdamer('cot(pi/4)'), or in the Playground.

nerdamer.cot

nerdamer.cot(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

A special angle.

cot(pi/4)
// → 1
Open in Playground

An exact irrational value.

cot(pi/6)
// → 3^(1/2)
Open in Playground

← Back to Function reference