In addition to basic arithmetic operations like adding, subtracting, multiplying, and dividing, there are several advanced functions that can be used in the equation editor. They are described in detail below.
Function | Description | Syntax | Notes | Examples |
max of 2 | Returns the largest value in a set of arguments | maximum(a_1, a_2) | Arguments can be a variable, a constant, or a mathematical function of two or more variables | MAX (variable1, variable2) |
min of 2 | Returns the smallest value in a set of arguments | minimum(a_1, a_2) | Arguments can be a variable, a constant, or a mathematical function of two or more variables | MIN (variable1, variable2) |
frequency (s) | Returns the frequency of the variable in seconds | frequency | The frequency of the variable is set in the "Edit" menu and can have values of 1 minute, five minutes, quarter hourly, etc. | If the virtual variable has a Frequency set to 1 minute, the frequency function will return 60. |
abs | Returns the absolute value of the expression | abs(a_1) | Arguments can be variables, constants, or mathematical functions of two or more variables | ABS (variable1) |
clip | Removes the values outside a specified boundary defined by a minimum and maximum limit | clip(a_1, a_min, a_max) | Argument a_1 is the variable of interest. Arguments a_min and a_max represent the upper and lower bounds to restrict argument a_1. Arguments a_min and a_max can be variables or constants. | CLIP (variable1, 25, 50) |
sign | Evaluates the sign of an argument. | sign(a_1) | Arguments can be a variable, a constant, or a mathematical function. | SIGN (variable1) |
ceil | Returns the next integer, rounded up. Positive numbers round up away from zero; negative numbers round up toward zero | ceil(a_1) | Arguments can be a variable, a constant, or an equation. | CEIL (variable1) |
round | Returns the rounded values of an argument to a specified number of decimal places | round(a_1,num_digits) | Arguments can be a variable, a constant, or an equation. The second argument, num_digits, specifies the number of decimal points to be kept when rounding. The default number is zero. | ROUND (variable1) |
floor | Returns the next integer, rounded down. Positive numbers round down toward zero; negative numbers round down away from zero | floor(a_1) | Arguments can be a variable, a constant, or an equation. | FLOOR (variable1) |
gradient | Returns a partial derivative at each point | gradient(a_1) | Arguments can be variables or equations containing variables. | GRADIENT (variable1) |
exp | Returns the value of the natural exponential function raised to the power of the argument. | exp(a_1) | Arguments can be a variable or a constant. | EXP (variable1) |
log | Returns the value of the logarithm of the argument | exp(a_1, [a_2]) | Arguments can be a variable or a constant. | LOG (variable1) |
