Appendix I: List of Functions
The following table contains the list of functions that can be used in the value expressions for parameters:
| Function | Description |
|---|---|
| abs(x) | Returns the absolute value of a value. |
| acos(x) | Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi. |
| acosd(x) | Returns the arc cosine of a value; the returned angle is in the range 0.0 through 180.0. |
| asin(x) | Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2. |
| asind(x) | Returns the arc sine of a value; the returned angle is in the range -90.0 through 90.0. |
| atan(x) | Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2. |
| atand(x) | Returns the arc tangent of a value; the returned angle is in the range -90.0 through 90. |
| atan2(y, x) | Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta); the returned angle is in the range -pi through pi. |
| atan2d(y, x) | Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta); the returned angle is in the range -180.0 through 180.0. |
| cbrt(x) | Returns the cube root of a value. |
| ceil(x) | Returns the smallest (closest to negative infinity) value that is greater than or equal to the argument and is equal to a mathematical integer. |
| cos(x) | Returns the trigonometric cosine of an angle (x) in radians. |
| cosd(x) | Returns the trigonometric cosine of an angle (x) in degrees. |
| cosh(x) | Returns the hyperbolic cosine of a value. |
| deg(x) | Converts an angle measured in radians to an approximately equivalent angle measured in degrees. |
| exp(x) | Returns Euler's number e raised to the power of a value. |
| expm1(x) | Returns exp(x) -1. |
| floor(x) | Returns the largest (closest to positive infinity) value that is less than or equal to the argument and is equal to a mathematical integer. |
| hypot(x, y) | Returns sqrt(x*x + y*y) without intermediate overflow or underflow. |
| ln(x) | Returns the natural logarithm (base e) of a value. |
| log(x, b) | Returns the base (b) logarithm of a value. |
| log2(x) | Returns the base 2 logarithm of a value. |
| log10(x) | Returns the base 10 logarithm of a value. |
| max(x1, x2) | Returns the greater of two values. |
| min(x1, x2) | Returns the smaller of two values. |
| pow(x, exp) | Returns the value of the first argument raised to the power of the second argument. |
| rad(x) | Converts an angle measured in degrees to an approximately equivalent angle measured in radians. |
| random() | Returns a value with a positive sign, greater than or equal to 0.0 and less than 1.0. |
| random(min, max) | Returns a value with a positive sign, greater than or equal to min and less than max. |
| rint(x) | Returns the value that is closest in value to the argument and is equal to a mathematical integer. |
| round(x) | Returns the closest to the argument, with ties rounding to positive infinity. |
| sin(x) | Returns the trigonometric sine of an angle (x) in radians. |
| sind(x) | Returns the trigonometric sine of an angle (x) in degrees. |
| sinh(x) | Returns the hyperbolic sine of a value. |
| sqrt(x) | Returns the correctly rounded positive square root of a value. |
| tan(x) | Returns the trigonometric tangent of an angle (x) in radians. |
| tand(x) | Returns the trigonometric tangent of an angle (x) in degrees. |
| tanh(x) | Returns the hyperbolic tangent of a value. |
| db20(x) | Returns the value corresponding to the function 20*log10(x). |
| db10(x) | Returns the value corresponding to the function 10*log10(x). |
| idb20(x) | Returns the value corresponding to the function pow(10,x/20). |
| idb10(x) | Returns the value corresponding to the function pow(10,x/10). |
| ridb20(p, x) | Returns the value corresponding to the function cosd(p)*idb20(x). |
| iidb20(p, x) | Returns the value corresponding to the function sind(p)*idb20(x). |
| cmplx(real, imag) | Returns new complex (real,imag). |
| cmplx(real) | Returns new complex (real,0.0). |
| real(c) | Returns the real part of a complex value. |
| imag(c) | Returns the imaginary part of a complex value. |
| conjugate(c) | Returns the conjugate of a complex value. |
| opposite(c) | Returns the opposite of a complex value. |
| mod(c) | Returns the module of a complex value. |
| phase(c) | Returns the phase (argument) of a complex value; the returned value is in the range 0.0 through 360.0. |
| arg(c) | Returns the phase (argument) of a complex value; the returned value is in the range 0.0 through 2*pi. |
| argd(c) | Returns the phase (argument) of a complex value; the returned value is in the range 0.0 through 360.0. |
| sum(c1, c2) | Returns the sum of two complex values. |
| sum(c, d) | Returns the sum of complex value by a value. |
| sum(d, c) | Returns the sum of value by a complex value. |
| sum(c, i) | Returns the sum of complex value by a integer value. |
| sum(i, c) | Returns the sum of integer value by a complex value. |
| sub(c1, c2) | Returns the subtraction of two complex values. |
| sub(c, d) | Returns the subtraction of complex value by a value. |
| sub(d, c) | Returns the subtraction of value by a complex value. |
| sub(c, i) | Returns the subtraction of complex value by a integer value. |
| sub(i, c) | Returns the subtraction of integer value by a complex value. |
| mul(c1, c2) | Returns the multiplication of two complex values. |
| mul(c, d) | Returns the multiplication of complex value by a value. |
| mul(d, c) | Returns the multiplication of value by a complex value. |
| mul(c, i) | Returns the multiplication of complex value by a integer value. |
| mul(i, c) | Returns the multiplication of integer value by a complex value. |
| div(c1, c2) | Returns the division of two complex values. |
| div(c, d) | Returns the division of complex value by a value. |
| div(d, c) | Returns the division of value by a complex value. |
| div(c, i) | Returns the division of integer value by a value. |
| div(i, c) | Returns the division of integer value by a complex value. |
| exp(c) | Returns Euler's number e raised to the power of a complex value. |
| csqrt(c) | Returns the correctly rounded positive square root of a value. |
| sqrt(c) | Returns the correctly rounded positive square root of a complex value. |
To call a function, the user has to specify its name followed by the list of parameters, enclosed in parentheses and separated by commas, for example, pow(4, 3)