Formula Node and Expression Node Functions

The following list contains the names of the Formula Node and Expression Node functions, and their descriptions. Except for the binary functions, you also can use these functions with the Formula VIs and the Nonlinear Curve Fit VI. All function names must be lowercase. You also can use operators and the pi constant in Formula and Expression Nodes.

Note Formula Node and Expression Node functions might not return the same value as functions with the same name in Microsoft Excel, the MATLAB® software, or other text-based math environments.
Note You can use Formula Node most effectively if you are familiar with the C programming language. LabVIEW Help assumes you are familiar with C and does not contain any topics related to programming in C. Refer to The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie or Teach Yourself C by Herbert Schildt for more information.
Function Corresponding LabVIEW Function Description
absx Absolute Value Returns the absolute value of x.
acosx Inverse Cosine Computes the inverse cosine of x in radians.
acoshx Inverse Hyperbolic Cosine Computes the inverse hyperbolic cosine of x.
asinx Inverse Sine Computes the inverse sine of x in radians.
asinhx Inverse Hyperbolic Sine Computes the inverse hyperbolic sine of x.
atanx Inverse Tangent Computes the inverse tangent of x in radians.
atan2y, x Inverse Tangent (2 Input) Computes the arctangent of y / x in radians.
atanhx Inverse Hyperbolic Tangent Computes the inverse hyperbolic tangent of x.
ceilx Round Toward +Infinity Rounds x to the next higher integer (smallest integer x.
cosx Cosine Computes the cosine of x, where x is in radians.
coshx Hyperbolic Cosine Computes the hyperbolic cosine of x.
cotx Cotangent Computes the cotangent of x (1/tanx), where x is in radians.
cscx Cosecant Computes the cosecant of x (1/sinx), where x is in radians.
expx Exponential Computes the value of e raised to the x power.
expm1x Exponential (Arg) – 1 Computes one less than the value of e raised to the x power (e ^ x – 1).
floorx Round To –Infinity Truncates x to the next lower integer (largest integer x.
getexpx Mantissa & Exponent Returns the exponent of x.
getmanx Mantissa & Exponent Returns the mantissa of x.
intx Round To Nearest Rounds x to the nearest integer.
intrzx Rounds x to the nearest integer between x and zero.
lnx Natural Logarithm Computes the natural logarithm of x (to the base of e.
lnp1x Natural Logarithm (Arg +1) Computes the natural logarithm of x + 1).
logx Logarithm Base 10 Computes the logarithm of x (to the base of 10).
log2x Logarithm Base 2 Computes the logarithm of x (to the base of 2).
maxx, y Max & Min Compares x and y and returns the larger value.
minx, y Max & Min Compares x and y and returns the smaller value.
modx, y Quotient & Remainder Computes the remainder of x / y, when the quotient is rounded toward –Infinity.
powx, y Power of X Computes x raised to the y power.
rand Random Number (0 – 1) Produces a floating-point number between 0 and 1 exclusively.
remx, y Quotient & Remainder Computes the remainder of x / y, when the quotient is rounded toward –Infinity.
secx Secant Computes the secant of x, where x is in radians (1/cosx).
signx Sign Returns 1 if x is greater than 0, returns 0 if x is equal to 0, and returns –1 if x is less than 0.
sinx Sine Computes the sine of x, where x is in radians.
sincx Sinc Computes the sine of x divided by x (sinx/ x, where x is in radians.
sinhx Hyperbolic Sine Computes the hyperbolic sine of x.
sizeOfDimary, di Returns the size of the dimension di specified for the array ary.
sqrtx Square Root Computes the square root of x.
tanx Tangent Computes the tangent of x, where x is in radians.
tanhx Hyperbolic Tangent Computes the hyperbolic tangent of x.