1math(3) Erlang Module Definition math(3)
2
3
4
6 math - Mathematical functions.
7
9 This module provides an interface to a number of mathematical func‐
10 tions.
11
12 Note:
13 Not all functions are provided on all platforms. In particular, the
14 erf/1 and erfc/1 functions are not provided on Windows.
15
16
18 acos(X) -> float()
19
20 acosh(X) -> float()
21
22 asin(X) -> float()
23
24 asinh(X) -> float()
25
26 atan(X) -> float()
27
28 atan2(Y, X) -> float()
29
30 atanh(X) -> float()
31
32 ceil(X) -> float()
33
34 cos(X) -> float()
35
36 cosh(X) -> float()
37
38 exp(X) -> float()
39
40 floor(X) -> float()
41
42 fmod(X, Y) -> float()
43
44 log(X) -> float()
45
46 log10(X) -> float()
47
48 log2(X) -> float()
49
50 pow(X, Y) -> float()
51
52 sin(X) -> float()
53
54 sinh(X) -> float()
55
56 sqrt(X) -> float()
57
58 tan(X) -> float()
59
60 tanh(X) -> float()
61
62 Types:
63
64 Y = X = number()
65
66 A collection of mathematical functions that return floats. Argu‐
67 ments are numbers.
68
69 erf(X) -> float()
70
71 Types:
72
73 X = number()
74
75 Returns the error function of X, where:
76
77 erf(X) = 2/sqrt(pi)*integral from 0 to X of exp(-t*t) dt.
78
79 erfc(X) -> float()
80
81 Types:
82
83 X = number()
84
85 erfc(X) returns 1.0 - erf(X), computed by methods that avoid
86 cancellation for large X.
87
88 pi() -> float()
89
90 A useful number.
91
93 As these are the C library, the same limitations apply.
94
95
96
97Ericsson AB stdlib 3.4.5.1 math(3)