| Math library functions |
| Function |
Arguments |
Returns |
| |
|
|
|
abs(x) |
any |
absolute value of , ; same type |
| abs(x) |
complex |
length of ,
 |
|
acos(x) |
any |
(inverse cosine) |
|
acosh(x) |
any |
(inverse hyperbolic cosine) in radians |
|
airy(x) |
any |
Airy function Ai(x) |
|
arg(x) |
complex |
the phase of  |
|
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 |
|
EllipticK(k) |
real k (-1:1) |
complete elliptic integral of the first kind |
|
EllipticE(k) |
real k [-1:1] |
complete elliptic integral of the second kind |
|
EllipticPi(n,k) |
real n 1, real k (-1:1) |
complete elliptic integral of the third kind |
|
besj0(x) |
int or real |
Bessel function of in radians |
|
besj1(x) |
int or real |
Bessel function of in radians |
|
besjn(n,x) |
int, real |
Bessel function of in radians |
|
besy0(x) |
int or real |
Bessel function of in radians |
|
besy1(x) |
int or real |
Bessel function of in radians |
|
besyn(n,x) |
int, real |
Bessel function of in radians |
|
besi0(x) |
real |
Modified Bessel function of order 0, in radians |
|
besi1(x) |
real |
Modified Bessel function of order 1, in radians |
|
besin(n,x) |
int, real |
Modified Bessel function of order n, in radians |
|
ceil(x) |
any |
, smallest integer not less than
(real part) |
|
cos(x) |
any |
, cosine of  |
|
cosh(x) |
any |
, hyperbolic cosine of in radians |
|
erf(x) |
any |
, error function of real( ) |
|
erfc(x) |
any |
, 1.0 - error function of real( ) |
|
exp(x) |
any |
, exponential function of  |
|
expint(n,x) |
int , real  |
, exponential integral of  |
|
floor(x) |
any |
, largest integer not greater
than (real part) |
|
gamma(x) |
any |
, gamma function of real( ) |
|
ibeta(p,q,x) |
any |
, ibeta function of real( , , ) |
|
inverf(x) |
any |
inverse error function of real( ) |
|
igamma(a,x) |
any |
, igamma function of real( , ) |
|
imag(x) |
complex |
imaginary part of as a real number |
|
invnorm(x) |
any |
inverse normal distribution function of real( ) |
|
int(x) |
real |
integer part of , truncated toward zero |
|
lambertw(x) |
real |
Lambert W function |
|
lgamma(x) |
any |
, lgamma function of real( ) |
|
log(x) |
any |
, natural logarithm (base ) of  |
|
log10(x) |
any |
, logarithm (base ) of  |
|
norm(x) |
any |
normal distribution (Gaussian) function of real( ) |
|
rand(x) |
int |
pseudo random number in the open interval (0:1) |
|
real(x) |
any |
real part of  |
|
sgn(x) |
any |
1 if , -1 if , 0 if . imag( ) ignored |
|
sin(x) |
any |
, sine of  |
|
sinh(x) |
any |
, hyperbolic sine of in radians |
|
sqrt(x) |
any |
, square root of  |
|
tan(x) |
any |
, tangent of  |
|
tanh(x) |
any |
, hyperbolic tangent of in radians |
|
voigt(x,y) |
real |
Voigt/Faddeeva function
 |
| |
|
Note: voigt = faddeeva |
| |
|
|