Math functions of an angle, with floating point numbers.

Precision as implemented by host.

Primary

In this section: acos asin atan atan2 cos deg hypot rad sin tan

acos

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (acos x)

Type signature:
  • (Float+) → Float+

Returns the arc cosine of a value x, in radians. Precision as implemented by host.

asin

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (asin x)

Type signature:
  • (Float+) → Float+

Returns the arc sine of a value x, in radians. Precision as implemented by host.

atan

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (atan x)

Type signature:
  • (Float+) → Float+

Returns the arc tangent of a value x, in radians. Precision as implemented by host.

atan2

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (atan2 x y)

Type signature:
  • (Float+ ⨯ Float+) → Float+

Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). Precision as implemented by host.

cos

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (cos rad)

Type signature:
  • (Float+) → Float+

Returns the circular cosine of an angle rad. Precision as implemented by host.

deg

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (deg rad)

Type signature:
  • (Float+) → Float+

Returns an angle in degrees which is approximately equivalent to given rad angle in radians. Precision as implemented by host.

hypot

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (hypot x y)

Type signature:
  • (Float+ ⨯ Float+) → Float+

Returns hypotenuse without intermediate overflow or underflow. Precision as implemented by host.

rad

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (rad deg)

Type signature:
  • (Float+) → Float+

Returns an angle in radians which is approximately equivalent to given deg angle in degrees. Precision as implemented by host.

sin

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (sin rad)

Type signature:
  • (Float+) → Float+

Returns the circular sine of an angle rad. Precision as implemented by host.

tan

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (tan rad)

Type signature:
  • (Float+) → Float+

Returns the circular tangent of an angle rad. Precision as implemented by host.

Hyperbolic

In this section: cosh sinh tanh

cosh

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (cosh x)

Type signature:
  • (Float+) → Float+

Returns the hyperbolic cosine of a hyperbolic angle x. Precision as implemented by host.

sinh

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (sinh x)

Type signature:
  • (Float+) → Float+

Returns the hyperbolic sine of a hyperbolic angle x. Precision as implemented by host.

tanh

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (tanh x)

Type signature:
  • (Float+) → Float+

Returns the hyperbolic tangent of a hyperbolic angle x.