Atom

math.acos()

Computes inverse cosine.

Signature

math.acos(x)

Parameters

One number, with real domain from -1 through 1.

Returns

f64 radians, or NaN outside the domain.

Behavior

Uses the C math operation.

Errors

Requires a number.

Example

Atom
use math
assert(math.acos(1) == 0)