Math library functions |
Function |
Arguments |
Returns |
abs(x) |
any |
absolute value of 10#10, 11#11; same type |
abs(x) |
complex |
length of 10#10,
12#12 |
acos(x) |
any |
13#13 (inverse cosine) |
acosh(x) |
any |
14#14 (inverse hyperbolic cosine) in radians |
arg(x) |
complex |
the phase of 10#10 |
asin(x) |
any |
15#15 (inverse sin) |
asinh(x) |
any |
16#16 (inverse hyperbolic sin) in radians |
atan(x) |
any |
17#17 (inverse tangent) |
atan2(y,x) |
int or real |
18#18 (inverse tangent) |
atanh(x) |
any |
19#19 (inverse hyperbolic tangent) in radians |
EllipticK(k) |
real k 20#20 (-1:1) |
21#21 complete elliptic integral of the first kind |
EllipticE(k) |
real k 20#20 [-1:1] |
22#22 complete elliptic integral of the second kind |
EllipticPi(n,k) |
real n4#41, real k 20#20 (-1:1) |
23#23 complete elliptic integral of the third kind |
besj0(x) |
int or real |
24#24 Bessel function of 10#10, in radians |
besj1(x) |
int or real |
25#25 Bessel function of 10#10, in radians |
besy0(x) |
int or real |
26#26 Bessel function of 10#10, in radians |
besy1(x) |
int or real |
27#27 Bessel function of 10#10, in radians |
ceil(x) |
any |
28#28, smallest integer not less than 10#10
(real part) |
cos(x) |
any |
29#29, cosine of 10#10 |
cosh(x) |
any |
30#30, hyperbolic cosine of 10#10 in radians |
erf(x) |
any |
31#31, error function of real(10#10) |
erfc(x) |
any |
32#32, 1.0 - error function of real(10#10) |
exp(x) |
any |
33#33, exponential function of 10#10 |
floor(x) |
any |
34#34, largest integer not greater
than 10#10 (real part) |
gamma(x) |
any |
35#35, gamma function of real(10#10) |
ibeta(p,q,x) |
any |
36#36, ibeta function of real(37#37,38#38,10#10) |
inverf(x) |
any |
inverse error function of real(10#10) |
igamma(a,x) |
any |
39#39, igamma function of real(40#40,10#10) |
imag(x) |
complex |
imaginary part of 10#10 as a real number |
invnorm(x) |
any |
inverse normal distribution function of real(10#10) |
int(x) |
real |
integer part of 10#10, truncated toward zero |
lambertw(x) |
real |
Lambert W function |
lgamma(x) |
any |
41#41, lgamma function of real(10#10) |
log(x) |
any |
42#42, natural logarithm (base 43#43) of 10#10 |
log10(x) |
any |
44#44, logarithm (base 45#45) of 10#10 |
norm(x) |
any |
normal distribution (Gaussian) function of real(10#10) |
rand(x) |
any |
46#46, pseudo random number generator |
real(x) |
any |
real part of 10#10 |
sgn(x) |
any |
1 if 47#47, -1 if 48#48, 0 if 49#49. imag(10#10) ignored |
sin(x) |
any |
50#50, sine of 10#10 |
sinh(x) |
any |
51#51, hyperbolic sine of 10#10 in radians |
sqrt(x) |
any |
52#52, square root of 10#10 |
tan(x) |
any |
53#53, tangent of 10#10 |
tanh(x) |
any |
54#54, hyperbolic tangent of 10#10 in radians |