math

Mathematical Functions

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

Note!

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

Functions


pi/0

A useful number.

sin/1

cos/1

tan/1

asin/1

acos/1

atan/1

atan2/2

sinh/1

cosh/1

tanh/1

asinh/1

acosh/1

atanh/1

exp/1

log/1

log10/1

pow/2

sqrt/1

A collection of math functions which return floats. Arguments are numbers.

erf/1

Returns the error function of X, where

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

erfc/1

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

Bugs

As these are the C library, the bugs are the same.

View Functions