0 ×

Math Formula (Variable)

KNIME Math Expression Node version 4.4.0.v202104131321 by KNIME AG, Zurich, Switzerland

This node evaluates a (free-form) mathematical expression based on the values of the flow variables. The computed results can be either appended as new variable or be used to replace an input variable. Commonly used functions are shown in the list "Mathematical Functions". There are also some constants available, such as pi (the ratio of the circumference of a circle to its diameter) and e (the base of the natural logarithms).

This node uses JEP, the Java Math Expression Parser.

You can reference the integer flow variables like this: $${IflowVar}$$, the floating point flow variables like this: $${DflowVar}$$.

NaN values act as value true in boolean expressions and compared to anything (including NaN) in any way (including ==, but not !=, which is like !(... == ...)) is false (0).

Please note the expressions are case sensitive.


Flow Variable List
Available flow variables, which can be used as variables in the expression.
The operator categories.
A list of valid operators in the selected category.
Short help about the operator.
The mathematical expression editor. You have completion available.
Append Variable
The name of the variable to append.
Replace Variable
The variable to be replaced.
Convert to Int
The result should be converted to an integer, or kept as a floating point number.

Input Ports

(Optional) input variables

Output Ports

Input variables with the new or replaced output variable.

Best Friends (Incoming)

Best Friends (Outgoing)



To use this node in KNIME, install KNIME Math Expression (JEP) from the following update site:


A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.


You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.