math

math

math
Mathematical functions.

This module provides an interface to a number of mathematical functions.

Note

Not all functions are provided on all platforms. In particular, the erf/1 and erfc/1 functions are not provided on Windows.

Types

Y = X = number()

A collection of mathematical functions that return floats. Arguments are numbers.

Types

Returns the error function of X, where:

erf(X) = 2/sqrt(pi)*integral from 0 to X of exp(-t*t) dt.

Types

erfc(X) returns 1.0 - erf(X), computed by methods that avoid cancellation for large X.

As these are the C library, the same limitations apply.