The Math components are a set of typical mathematical functions for evaluating calculation expressions.
-
The - component performs a subtraction operation, in which the value of the second input pin is subtracted from the value of the first input pin. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The number value that falls to the left of the expression. This input is required. Not connecting this pin will produce an error.
The number value that falls to the right of the expression, which is subtracted from the left number. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant value of the subtraction operation. Not connecting this pin will produce a warning.
+
The + component performs an addition operation, in all input pins are summed. The resultant value is sent to the output pin.
Properties
Num Inputs
The number of input pins for this component. You can specify up to 8 inputs.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
A numerical value which is to be added to the other inputs. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant value of the addition operation. Not connecting this output pin will produce a warning.
×
The x component performs a multiplication operation, in which all input pins are multiplied together. The resultant value is sent to the output pin.
Properties
Num Inputs
The number of input pins for this component. You can specify up to 8 inputs.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
A numerical value which is to be multiplied with the other inputs. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant value of the multiplication operation. Not connecting this output pin will produce a warning.
÷
The ÷ component performs a division operation, in which the value of the left input pin is divided by the value of the right input pin. The resultant value (quotient) is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The number value that falls to the left of the expression (dividend), which is divided by the right number (divisor). This input is required. Not connecting this pin will produce an error.
The number value that falls to the right of the expression (divisor). This number must not be 0. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant value of the division operation (quotient). Not connecting this output pin will produce a warning.
If an error occurs, such as the divisor is 0, the process follows this path. If this pin is not connected, the process will abort if an error is encountered.
√×
The √× component performs a square root operation on the value of the input pin. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The numerical value on which the square root operation will be performed. This number must be greater than or equal to 0. This input is required. Not connecting this pin will produce an error.
Outputs
The principal (or positive) square root of the input value. Not connecting this pin will produce a warning.
If an error occurs, the process follows this path. If this pin is not connected, the process will abort if an error is encountered.
³√×
The ³√× component performs a cubic root operation on the value of the input pin. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The numerical value on which the cubic root operation will be performed. This number must be greater than or equal to 0. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant value of the cubic root operation. Not connecting this pin will produce a warning.
If an error occurs, the process follows this path. If this pin is not connected, the process will abort if an error is encountered.
Abs
The Abs component performs an absolute value operation on the value of the input pin. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
A positive or negative number. This input is required. Not connecting this pin will produce an error.
Outputs
A positive number which is the absolute value of the input. Not connecting this pin will produce a warning.
Ceil
The Ceil component performs a ceiling operation on the value of the input pin, which returns the least integer that is greater than or equal to the input value. The resultant value is sent to the output pin.
Examples:
Expression | Value |
CEIL(23) | 23 |
CEIL(23.001) | 24 |
CEIL(-23.001) | -23 |
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
A positive or negative number. This input is required. Not connecting this pin will produce an error.
Outputs
A number which is the least integer that is greater than or equal to the input value. Not connecting this pin will produce a warning.
eᶯ
The eᶯ component returns an exponent operation on the value of the input pin, where e (approximately 2.72) is raised to the power of n. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The exponent value n, which determines how many times e is to be multiplied by itself. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant number. Not connecting this pin will produce a warning.
Floor
The Floor component performs a floor operation on the value of the input pin, which returns the greatest integer that is less than or equal to the input value. The resultant value is sent to the output pin.
Examples:
Expression | Value |
---|---|
FLOOR(23) | 23 |
FLOOR(23.999) | 23 |
FLOOR(-23.999) | -24 |
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
A positive or negative number. This input is required. Not connecting this pin will produce an error.
Outputs
A number which is the greatest integer that is less than or equal to the input value. Not connecting this pin will produce a warning.
ln(x)
The ln(x) component outputs the natural logarithm of the input value X.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The input value for which to calculate the natural logarithm. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant logarithmic number. Not connecting this pin will produce a warning.
Log10(x)
The Log10(x) component outputs the logarithm to base 10 of the input value X.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The input value for which to calculate the logarithm to base 10. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant logarithmic number. Not connecting this pin will produce a warning.
Log2(x)
The Log2(x) component outputs the logarithm to base 2 of the input value X.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The input value for which to calculate the logarithm to base 2. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant logarithmic number. Not connecting this pin will produce a warning.
LogY(x)
The LogY(x) component outputs the logarithm to the specified base Y of the input value X.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The input X value. This input is required. Not connecting this pin will produce an error.
The base number that is being multiplied. This is truncated to an integer, and must have a value greater than 0 and not equal to 1. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant logarithmic number. Not connecting this pin will produce a warning.
If an error occurs, the process follows this path. If this pin is not connected, the process will abort if an error is encountered.
Mod
The Mod component performs a modulus operation, in which the value of the first input pin is divided by the value of the second input pin, and the remaining value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The number value that falls to the left of the expression (dividend), which is divided by the right number (divisor). This input is required. Not connecting this pin will produce an error.
The number value that falls to the right of the expression (divisor). This number must not be 0. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant value of the modulus operation. Not connecting this pin will produce a warning.
If an error occurs, the process follows this path. If this pin is not connected, the process will abort if an error is encountered.
Round
The Round component rounds the first input to the number of decimal places specified by the second input.
Values above half way between rounded numbers (or exactly equal to half way) are rounded up. Values below half way are rounded down. Rounding up means away from zero, rounding down means towards zero.
Examples:
value | dps | Result |
23.45 | 0 | 23 |
1.24 | 1 | 1.2 |
1.25 | 1 | 1.3 |
1.26 | 1 | 1.3 |
1.24 | 1 | -1.2 |
1.25 | 1 | -1.3 |
1.26 | 1 | -1.3 |
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The number that is to be rounded. This input is required. Not connecting this pin will produce an error.
The number of decimal places. This is truncated to an integer, and must have a value between 0 and 20, otherwise an error will occur. This pin is optional – if not specified it defaults to zero. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant rounded number. Not connecting this pin will produce a warning.
Sign
The Sign component accepts a number input, and outputs a 1 if the number is positive, or outputs -1 is the input is a negative number.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
A numerical input which is either a positive or a negative number. This input is required. Not connecting this pin will produce an error.
Outputs
If the input is a positive number, the resultant output will be 1. Zero is treated as a positive number. If the input is a negative number, the resultant output will be -1. Not connecting this pin will produce a warning.
x²
The x² component performs a square operation on the value of the input pin. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The numerical value on which the square operation will be performed. This input is required. Not connecting this pin will produce an error.
Outputs
The square of the value of the input pin. Not connecting this pin will produce a warning.
x³
The x³ component performs a cube operation on the value of the input pin. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The numerical value on which the cube operation will be performed. This input is required. Not connecting this pin will produce an error.
Outputs
The cube of the value of the input pin. Not connecting this pin will produce a warning.
xʸ
The xʸ component performs an exponent operation on the value of the input pin, where x is multiplied by itself y times. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The value that is to be multiplied by itself. This input is required. Not connecting this pin will produce an error.
The exponent value, which determines how many times x is to be multiplied by itself. This input is required. Not connecting this pin will produce an error.
Outputs
The value of the exponent operation. If the exponent is 0, the output will be 1. Not connecting this pin will produce a warning.
ʸ√×
The ʸ√× component performs a yth root operation on the value of the x input pin. The resultant value is sent to the output pin.
Properties
This component has no additional properties.
Inputs
The component that acts as a trigger for this component should be connected to this pin.
The numerical value on which the yth root operation will be performed. This number must be greater than or equal to 0. This input is required. Not connecting this pin will produce an error.
The root value to apply to the input x. This number must be greater than 0 and not equal to 1. This input is required. Not connecting this pin will produce an error.
Outputs
The resultant value of the yth root operation. Not connecting this pin will produce a warning.
If an error occurs, the process follows this path. If this pin is not connected, the process will abort if an error is encountered.