Function reference · Trigonometry

acos

Returns the arccosine, in radians from 0 to π.

For a number outside [-1, 1], the result stays exact; evaluating it gives a complex value.

Notation

acos(x)

Write it in an expression: nerdamer('acos(1)'), or in the Playground.

nerdamer.acos

nerdamer.acos(x: ExpressionInput): Expression

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

Examples

The end of the range.

acos(1)
// → 0
Open in Playground

An exact value.

acos(1/2)
// → (1/3)*pi
Open in Playground

Outside [-1, 1]: complex.

evaluate(acos(2))
// → 1.3169578969248167086*i
Open in Playground

Also called

arccos

← Back to Function reference