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 type

  • DBL_MAX denotes the maximum number representable in double precision real data type

Table "VM Mathematical Functions" lists available mathematical functions and associated data types.

VM Mathematical Functions
Function Data Types Description
Arithmetic Functions
v?Add s, d, c, z Adds vector elements
v?Sub s, d, c, z Subtracts vector elements
v?Sqr s, d Squares vector elements
v?Mul s, d, c, z Multiplies vector elements
v?MulByConj c, z Multiplies elements of one vector by conjugated elements of the second vector
v?Conj c, z Conjugates vector elements
v?Abs s, d, c, z Computes the absolute value of vector elements
v?Arg c, z Computes the argument of vector elements
v?LinearFrac s, d Performs linear fraction transformation of vectors
Power and Root Functions
v?Inv s, d Inverts vector elements
v?Div s, d, c, z Divides elements of one vector by elements of the second vector
v?Sqrt s, d, c, z Computes the square root of vector elements
v?InvSqrt s, d Computes the inverse square root of vector elements
v?Cbrt s, d Computes the cube root of vector elements
v?InvCbrt s, d Computes the inverse cube root of vector elements
v?Pow2o3 s, d Computes the cube root of the square of each vector element
v?Pow3o2 s, d Computes the square root of the cube of each vector element
v?Pow s, d, c, z Raises each vector element to the specified power
v?Powx s, d, c, z Raises each vector element to the constant power
v?Hypot s, d Computes the square root of sum of squares
Exponential and Logarithmic Functions
v?Exp s, d, c, z Computes the base e exponential of vector elements
v?Expm1 s, d Computes the base e exponential of vector elements decreased by 1
v?Ln s, d, c, z Computes the natural logarithm of vector elements
v?Log10 s, d, c, z Computes the base 10 logarithm of vector elements
v?Log1p s, d Computes the natural logarithm of vector elements that are increased by 1
Trigonometric Functions
v?Cos s, d, c, z Computes the cosine of vector elements
v?Sin s, d, c, z Computes the sine of vector elements
v?SinCos s, d Computes the sine and cosine of vector elements
v?CIS c, z Computes the complex exponent of vector elements (cosine and sine combined to complex value)
v?Tan s, d, c, z Computes the tangent of vector elements
v?Acos s, d, c, z Computes the inverse cosine of vector elements
v?Asin s, d, c, z Computes the inverse sine of vector elements
v?Atan s, d, c, z Computes the inverse tangent of vector elements
v?Atan2 s, d Computes the four-quadrant inverse tangent of ratios of the elements of two vectors
Hyperbolic Functions
v?Cosh s, d, c, z Computes the hyperbolic cosine of vector elements
v?Sinh s, d, c, z Computes the hyperbolic sine of vector elements
v?Tanh s, d, c, z Computes the hyperbolic tangent of vector elements
v?Acosh s, d, c, z Computes the inverse hyperbolic cosine of vector elements
v?Asinh s, d, c, z Computes the inverse hyperbolic sine of vector elements
v?Atanh s, d, c, z Computes the inverse hyperbolic tangent of vector elements.
Special Functions
v?Erf s, d Computes the error function value of vector elements
v?Erfc s, d Computes the complementary error function value of vector elements
v?CdfNorm s, d Computes the cumulative normal distribution function value of vector elements
v?ErfInv s, d Computes the inverse error function value of vector elements
v?ErfcInv s, d Computes the inverse complementary error function value of vector elements
v?CdfNormInv s, d Computes the inverse cumulative normal distribution function value of vector elements
v?LGamma s, d Computes the natural logarithm for the absolute value of the gamma function of vector elements
v?TGamma s, d Computes the gamma function of vector elements
v?ExpInt1 s, d Computes the exponential integral of vector elements
Rounding Functions  
v?Floor s, d Rounds towards minus infinity
v?Ceil s, d Rounds towards plus infinity
v?Trunc s, d Rounds towards zero infinity
v?Round s, d Rounds to nearest integer
v?NearbyInt s, d Rounds according to current mode
v?Rint s, d Rounds according to current mode and raising inexact result exception
v?Modf s, d Computes the integer and fractional parts
v?Frac s, d Computes the fractional part
Miscellaneous Functions
Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.
Выберите цвет фиксируемой кнопки: 
Orange (only for download buttons)