VM Mathematical Functions
This section describes VM functions that compute values of mathematical
functions on real and complex vector arguments.
Each function is introduced by its short name, a brief description of
its purpose, and the calling sequence for each type of data, as well as
a description of the input/output arguments.
The input range of parameters is equal to the mathematical range of the
input data type, unless the function description specifies input
threshold values, which mark off the precision overflow, as follows:
- FLT_MAXdenotes the maximum number representable in single precision real data type
- DBL_MAXdenotes the maximum number representable in double precision real data type
The following table lists available mathematical functions and associated data types.
Function | Data Types | Description |
---|---|---|
Arithmetic Functions | ||
s, d | Performs element by element computation of the modulus function of
vector a with respect to vector b | |
s, d | Performs element by element computation of the remainder function
on the elements of vector a and the corresponding elements of vector b | |
Power and Root Functions | ||
s, d | Computes a to the power b for elements of two vectors, where the elements of vector argument a are all non-negative | |
Exponential and Logarithmic Functions | ||
Trigonometric Functions | ||
c, z | Computes the complex exponent of vector elements (cosine and sine combined to complex value) | |
s, d | Computes the four-quadrant inverse tangent of the ratios of the
corresponding elementss of two vectors divided by ![]() | |
Hyperbolic Functions | ||
Special Functions | ||
s, d | Computes the inverse cumulative normal distribution function
value of vector elements | |
s, d | Computes the natural logarithm for the absolute value of the gamma
function of vector elements | |
Rounding Functions | ||
Miscellaneous Functions | ||
s, d | Returns vector of elements of one argument with signs changed to match other argument elements | |
s, d | Returns vector of elements containing the next representable floating-point values following the values from the elements of one vector in the direction of the corresponding elements of another vector | |
s, d | Returns vector containing the differences of the corresponding elements of the vector arguments if the first is larger and +0 otherwise | |
s, d | Returns the element with the larger magnitude between each pair of elements of the two vector arguments | |
s, d | Returns the element with the smaller magnitude between each pair of elements of the two vector arguments |