VM Mathematical Functions¶
This section describes VM functions that compute values of mathematical functions on real and complex vector arguments with unit increment.
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_MAX
denotes the maximum number representable in single precision real data typeDBL_MAX
denotes the maximum number representable in double precision real data type
The following tables list the available mathematical functions grouped by category.
Arithmetic Routines |
Description |
---|---|
Adds vector elements |
|
Subtracts vector elements |
|
Squares vector elements |
|
Multiplies vector elements |
|
Multiplies elements of one vector by conjugated elements of the second vector |
|
Conjugates vector elements |
|
Computes the absolute value of vector elements |
|
Computes the argument of vector elements |
|
Performs linear fraction transformation of vectors |
|
Performs element by element computation of the modulus function of
vector |
|
Performs element by element computation of the remainder function
on the elements of vector |
Power and Root Routines |
Description |
---|---|
Inverts vector elements |
|
Divides elements of one vector by elements of the second vector |
|
Computes the square root of vector elements |
|
Computes the inverse square root of vector elements |
|
Computes the cube root of vector elements |
|
Computes the inverse cube root of vector elements |
|
Computes the cube root of the square of each vector element |
|
Computes the square root of the cube of each vector element |
|
Raises each vector element to the specified power |
|
Raises each vector element to the constant power |
|
Computes |
|
Computes the square root of sum of squares |
Exponential and Logarithmic Routines |
Description |
---|---|
Computes the base |
|
Computes the base 2 exponential of vector elements |
|
Computes the base 10 exponential of vector elements |
|
Computes the base |
|
Computes the natural logarithm of vector elements |
|
Computes the base 2 logarithm of vector elements |
|
Computes the base 10 logarithm of vector elements |
|
Computes the natural logarithm of vector elements that are increased by 1 |
|
Computes the exponents of the elements of input vector |
Trigonometric Routines |
Description |
---|---|
Computes the cosine of vector elements |
|
Computes the sine of vector elements |
|
Computes the sine and cosine of vector elements |
|
Computes the complex exponent of vector elements (cosine and sine combined to complex value) |
|
Computes the tangent of vector elements |
|
Computes the inverse cosine of vector elements |
|
Computes the inverse sine of vector elements |
|
Computes the inverse tangent of vector elements |
|
Computes the four-quadrant inverse tangent of ratios of the elements of two vectors |
|
Computes the cosine of vector elements multiplied by |
|
Computes the sine of vector elements multiplied by |
|
Computes the tangent of vector elements multiplied by |
|
Computes the inverse cosine of vector elements divided by |
|
Computes the inverse sine of vector elements divided by |
|
Computes the inverse tangent of vector elements divided by |
|
Computes the four-quadrant inverse tangent of the ratios of the
corresponding elements of two vectors divided by |
|
Computes the cosine of vector elements multiplied by |
|
Computes the sine of vector elements multiplied by |
|
Computes the tangent of vector elements multiplied by |
Hyperbolic Routines |
Description |
---|---|
Computes the hyperbolic cosine of vector elements |
|
Computes the hyperbolic sine of vector elements |
|
Computes the hyperbolic tangent of vector elements |
|
Computes the inverse hyperbolic cosine of vector elements |
|
Computes the inverse hyperbolic sine of vector elements |
|
Computes the inverse hyperbolic tangent of vector elements. |
Special Routines |
Description |
---|---|
Computes the error function value of vector elements |
|
Computes the complementary error function value of vector elements |
|
Computes the cumulative normal distribution function value of vector elements |
|
Computes the inverse error function value of vector elements |
|
Computes the inverse complementary error function value of vector elements |
|
Computes the inverse cumulative normal distribution function value of vector elements |
|
Computes the natural logarithm for the absolute value of the gamma function of vector elements |
|
Computes the gamma function of vector elements |
|
Computes the exponential integral of vector elements |
Rounding Routines |
Description |
---|---|
Rounds towards minus infinity |
|
Rounds towards plus infinity |
|
Rounds towards zero infinity |
|
Rounds to nearest integer |
|
Rounds according to current mode |
|
Rounds according to current mode and reports inexact result status |
|
Computes the integer and fractional parts |
|
Computes the fractional part |
Miscellaneous Routines |
Description |
---|---|
Returns vector of elements of one argument with signs changed to match other argument elements |
|
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 |
|
Returns vector containing the differences of the corresponding elements of the vector arguments if the first is larger and +0 otherwise |
|
Returns the larger of each pair of elements of the two vector arguments |
|
Returns the smaller of each pair of elements of the two vector arguments |
|
Returns the element with the larger magnitude between each pair of elements of the two vector arguments |
|
Returns the element with the smaller magnitude between each pair of elements of the two vector arguments |
Parent topic: Vector Math