The following list contains the names of the Formula Node and Expression Node functions, and their descriptions. You also can use these functions with Formula VIs. All function names must be lowercase. You also can use operators and the pi constant in Formula and Expression Nodes.
Function | Corresponding LabVIEW Function | Description |
---|---|---|
abs(x) | Absolute Value | Returns the absolute value of x. |
acos(x) | Inverse Cosine | Computes the inverse cosine of x in radians. |
acosh(x) | Inverse Hyperbolic Cosine | Computes the inverse hyperbolic cosine of x. |
asin(x) | Inverse Sine | Computes the inverse sine of x in radians. |
asinh(x) | Inverse Hyperbolic Sine | Computes the inverse hyperbolic sine of x. |
atan(x) | Inverse Tangent | Computes the inverse tangent of x in radians. |
atanh(x) | Inverse Hyperbolic Tangent | Computes the inverse hyperbolic tangent of x. |
ceil(x) | Round To +Infinity | Rounds x to the next higher integer (smallest integer ![]() |
ci(x) | Cosine Integral | Computes the cosine integral of x where x is any real number. |
cos(x) | Cosine | Computes the cosine of x, where x is in radians. |
cosh(x) | Hyperbolic Cosine | Computes the hyperbolic cosine of x. |
cot(x) | Cotangent | Computes the cotangent of x (1/tan(x)), where x is in radians. |
csc(x) | Cosecant | Computes the cosecant of x (1/sin(x)), where x is in radians. |
exp(x) | Exponential | Computes the value of e raised to the x power. |
expm1(x) | Exponential (Arg) 1 | Computes one less than the value of e raised to the x power ((e^x) 1). |
floor(x) | Round To Infinity | Truncates x to the next lower integer (largest integer ![]() |
gamma(x) | Gamma Function | ![]() |
getexp(x) | Mantissa & Exponent | Returns the exponent of x. |
getman(x) | Mantissa & Exponent | Returns the mantissa of x. |
int(x) | Round To Nearest | Rounds x to the nearest integer. |
intrz(x) | | Rounds x to the nearest integer between x and zero. |
ln(x) | Natural Logarithm | Computes the natural logarithm of x (to the base of e). |
lnp1(x) | Natural Logarithm (Arg +1) | Computes the natural logarithm of (x + 1). |
log(x) | Logarithm Base 10 | Computes the logarithm of x (to the base of 10). |
log2(x) | Logarithm Base 2 | Computes the logarithm of x (to the base of 2). |
max(x,y) | Max & Min | Compares x and y and returns the larger value. |
min(x,y) | Max & Min | Compares x and y and returns the smaller value. |
mod(x,y) | Quotient & Remainder | Computes the remainder of x/y, when the quotient is rounded toward Infinity. |
pi(x) | Represents the value ![]() |
pi(x) = x * ![]() pi(1) = ![]() pi(2.4) = 2.4 * ![]() |
rand( ) | Random Number (0 1) | Produces a floating-point number between 0 and 1 exclusively. |
rem(x,y) | Quotient & Remainder | Computes the remainder of x/y, when the quotient is rounded to the nearest integer. |
sec(x) | Secant | Computes the secant of x, where x is in radians (1/cos(x)). |
si(x) | Sine Integral | Computes the sine integral of x where x is any real number. |
sign(x) | 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. |
sin(x) | Sine | Computes the sine of x, where x is in radians. |
sinc(x) | Sinc | Computes the sine of x divided by x (sin(x)/x), where x is in radians. |
sinh(x) | Hyperbolic Sine | Computes the hyperbolic sine of x. |
spike(x) | Spike Function | spike(x) returns: 1 if 0 ![]() ![]() 0 for any other value of x. |
sqrt(x) | Square Root | Computes the square root of x. |
square(x) | Square Function | square (x) returns: 1 if 2n ![]() ![]() 0 if 2n + 1 ![]() ![]() where x is any real number and n is any integer. |
step(x) | Step Function | step(x) returns: 0 if x < 0 1 if any other condition obtains. |
tan(x) | Tangent | Computes the tangent of x, where x is in radians. |
tanh(x) | Hyperbolic Tangent | Computes the hyperbolic tangent of x. |