Math Expression

Node Icon

Evaluate a numeric expression from zero or more inputs. The inputs can be images, masks, numeric arrays or boolean arrays.

Inputs

x1

Input variable to the expression.

Type: Image List, Mask List, Numeric Array List, Boolean Array List

Outputs

Y

Resulting value.

Type: Image

Settings

Expression

Y = Text

Define the mathematical expression. Valid operations include,

  • arithmetic operations: +-*/,
  • algebraic functions: pow(a,b) to raise a to the power of b, sqrt()
  • trigonometric functions: sin(), cos(), tan(), asin(), acos(), atan()
  • hyperbolic functions: sinh() cosh(), tanh(), asinh(), acosh(), atanh()
  • exponential and logarithmic functions: exp(), log(), log10()

Add Variable Button

Add a new varaible as an input

Add SubExpression Button

Create a subexpression. This can be useful when you want to simplify the final expression by creating subexpressions that can be used as variables.

Configure

Output Type Selection

Define the output type manually.

Values: Image, Image List, Mask, Mask List, Numeric Array, Numeric Array List, Boolean Array, Boolean Array List

Metadata From Selection

Assign from which input the output image or mask should inherit the metadata.

Values: None

Broadcasting Selection

Define how broadcasting should be performed.

Values: Align Leading Dimensions, Align Trailing Dimensions

Variable: x1

Variable Name Text

Set or change the variable name.

Remove Variable Button

Remove variable.

See also

Keywords: