Unix/Linux Go Back    


Linux 2.6 - man page for math (linux section 3erl)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)


math(3erl)			     Erlang Module Definition			       math(3erl)

NAME
       math - Mathematical Functions

DESCRIPTION
       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.

EXPORTS
       pi() -> float()

	      A useful number.

       sin(X)
       cos(X)
       tan(X)
       asin(X)
       acos(X)
       atan(X)
       atan2(Y, X)
       sinh(X)
       cosh(X)
       tanh(X)
       asinh(X)
       acosh(X)
       atanh(X)
       exp(X)
       log(X)
       log10(X)
       pow(X, Y)
       sqrt(X)

	      Types  X = Y = number()

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

       erf(X) -> float()

	      Types  X = number()

	      Returns the error function of X , where

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

       erfc(X) -> float()

	      Types  X = number()

	      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.

Ericsson AB				  stdlib 1.17.3 			       math(3erl)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums


All times are GMT -4. The time now is 07:39 PM.