ArrayMathExpressionTrigger Op
Calculates a user defined mathematical expression
Summary (oneliner)
<p>Use this op to write your own mathematical functions.</p> <p>Inputs can be arrays and numbers. Arrays need to be the same length, else the resulting output is <code>null</code>.</p> <p>Use the inputs' lower-case letters in your expression, i.e:</p> <p><code>b*c+sin(a) - x</code></p> <p>There are 2 more variables availible for your expression: <code>i</code> and <code>len</code></p> <p>i - the current index len - the arrays' length</p> <p>For a reference of mathematical functions availible, please refer to the Javascript Math object: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math</a></p>
- Ops.Array.ArrayMathExpressionTrigger
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
INPUT PORTS
Parameters
<p>first input array - use a in your expression</p>
<p>second input array - use b in your expression</p>
<p>third input array - use c in your expression</p>
<p>first number input - use x in your expression</p>
<p>second number input - use y in your expression</p>
<p>third number input - use z in your expression</p>
Expression
<p>the mathematical expression to be calculated</p>
OUTPUT PORTS
<p>the resulting array</p>
<p>the resulting array's length</p>
<i>boolean</i>
Number)<p>true if the expression is valid, false otherwise</p>
Patches using ArrayMathExpressionTrigger
Changelog
created op | simod - 2020-07-23 11:32 | |
Ops.User.cables.ArrayMathExpression renamed to Ops.Array.ArrayMathExpression | simod - 2020-07-23 12:30 | |
cloned op from Ops.Array.ArrayMathExpression | pandur - 2022-09-27 12:14 | |
Ops.User.pandur.ArrayMathExpressionTrigger renamed to Ops.Arrays.ArrayMathExpressionTrigger | pandur - 2022-09-27 12:17 | |
Ops.Arrays.ArrayMathExpressionTrigger renamed to Ops.Array.ArrayMathExpressionTrigger | pandur - 2022-10-10 20:57 |