ArrayMathExpression Op
Calculates a user defined mathematical expression
Summary (oneliner)
Use this op to write your own mathematical functions.
Inputs can be arrays and numbers. Arrays need to be the same length, else the resulting output is null
.
Use the inputs' lower-case letters in your expression, i.e:
b*c+sin(a) - x
There are 2 more variables availible for your expression: i
and len
i - the current index len - the arrays' length
For a reference of mathematical functions availible, please refer to the Javascript Math object: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math
- Ops.Array.ArrayMathExpression
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
INPUT PORTS
Parameters
first input array - use a in your expression
second input array - use b in your expression
third input array - use c in your expression
first number input - use x in your expression
second number input - use y in your expression
third number input - use z in your expression
Expression
the mathematical expression to be calculated
OUTPUT PORTS
the resulting array
the resulting array's length
true if the expression is valid, false otherwise