SUBSTV
Jump to navigation
Jump to search
Syntax
SUBSTV ( expression | equation , equation | equation list )
Implemented in iMath since version 2.2.0 or earlier for a single equation to substitute. From version 2.2.8 upwards, the second argument can be a list of equations.
Explanation
For this special form of SUBST, the equation(s) to be substituted must have the form expression = vector
.
Substitute the equation or the list of equations in the expression/equation with all values of the vector. All substitutions will be done in parallel (use SUBSTVC if this is not what you want). The result will be a vector. This is useful for specifying values to CHART or to ITERATE.
Example
EXDEF SUBSTV(cos{3 %theta}, %theta=0:2 %pi/3:%pi/6)
will result in the vector (1,0,-1,0,1)