| Math library functions |
| Function |
Arguments |
Returns |
|
abs(x) |
any |
absolute value of x, same type |
| abs(x) |
complex |
length of x = sqrt(x_real * x_real + x_imag * x_imag)
|
|
acos(x) |
any |
inverse cosine |
|
acosh(x) |
any |
inverse hyperbolic cosine, in radians |
|
arg(x) |
complex |
the phase of x |
|
asin(x) |
any |
inverse sin |
|
asinh(x) |
any |
inverse hyperbolic sin, in radians |
|
atan(x) |
any |
inverse tangent |
|
atan2(y,x) |
int or real |
inverse tangent |
|
atanh(x) |
any |
inverse hyperbolic tangent, in radians |
|
besj0(x) |
int or real |
Bessel function of x, in radians |
|
besj1(x) |
int or real |
Bessel function of x, in radians |
|
besy0(x) |
int or real |
Bessel function of x, in radians |
|
besy1(x) |
int or real |
Bessel function of x, in radians |
|
ceil(x) |
any |
smallest integer not less than x
(real part) |
|
cos(x) |
any |
cosine of x |
|
cosh(x) |
any |
hyperbolic cosine of x in radians |
|
erf(x) |
any |
error function of real(x) |
|
erfc(x) |
any |
1.0 - error function of real(x) |
|
exp(x) |
any |
exponential function of x |
|
floor(x) |
any |
largest integer not greater
than x (real part) |
|
gamma(x) |
any |
gamma function of real(x) |
|
ibeta(p,q,x) |
any |
ibeta function of real(p,q,x) |
|
inverf(x) |
any |
inverse error function of real(x) |
|
igamma(a,x) |
any |
igamma function of real(a,x) |
|
imag(x) |
complex |
imaginary part of x as a real number |
|
invnorm(x) |
any |
inverse normal distribution function of real(x) |
|
int(x) |
real |
integer part of x, truncated toward zero |
|
lambertw(x) |
real |
Lambert W function |
|
lgamma(x) |
any |
lgamma function of real(x) |
|
log(x) |
any |
natural logarithm (base e) of x |
|
log10(x) |
any |
logarithm (base 10) of x |
|
norm(x) |
any |
normal distribution (Gaussian) function of real(x) |
|
rand(x) |
any |
pseudo random number generator |
|
real(x) |
any |
real part of x |
|
sgn(x) |
any |
1 if x>0, -1 if x<0, 0 if x=0. imag(x) ignored |
|
sin(x) |
any |
sine of x |
|
sinh(x) |
any |
hyperbolic sine of x in radians |
|
sqrt(x) |
any |
square root of x |
|
tan(x) |
any |
tangent of x |
|
tanh(x) |
any |
hyperbolic tangent of x in radians |