Atom

math.cos()

Computes cosine.

Signature

math.cos(x)

Parameters

One angle in radians.

Returns

f64.

Behavior

Uses the C math operation.

Errors

Requires a number.

Example

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