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
Table
"VM Mathematical Functions"
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 | ||