Fork me on GitHub
Source file: math-functions.fut

Mathematical functions

Builtin mathematical functions such as trigonometrical functions, square roots, and so on, are available through built-in modules.

def hypo (x: f32) (y: f32) = f32.sqrt (x*x + y*y)

A module exists for every number type.

See also

The builtin mathematical modules.

Three-dimensional vectors, Complex numbers.