ArrayMathExpression Op

ArrayMathExpression

Calculates a user defined mathematical expression


<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&#39; 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&#39; 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>


Full Name
  • Ops.Array.ArrayMathExpression
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


Example Patch ArrayMathExpression example

This is an example patch for the ArrayMathExpression op.

Open In Editor

INPUT PORTS


Parameters

A (Array)

<p>first input array - use a in your expression</p>

B (Array)

<p>second input array - use b in your expression</p>

C (Array)

<p>third input array - use c in your expression</p>

X (Number)

<p>first number input - use x in your expression</p>

Y (Number)

<p>second number input - use y in your expression</p>

Z (Number)

<p>third number input - use z in your expression</p>

Expression

Expression (String)

<p>the mathematical expression to be calculated</p>

OUTPUT PORTS


Result Array (Array)

<p>the resulting array</p>

Array Length (Number)

<p>the resulting array&#39;s length</p>

Expression Valid (

<i>boolean</i>

Number)

<p>true if the expression is valid, false otherwise</p>


Patches using ArrayMathExpression

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarsimod - 2020-07-23 11:32
Ops.User.cables.ArrayMathExpression renamed to Ops.Array.ArrayMathExpressionuser avatarsimod - 2020-07-23 12:30