VarDiff¶
Description¶
Calculates the difference of at least two variables.
Arguments¶
varnames
— vector with variable names.diffname
— the name of the resulting variable.
Implementation¶
The transformation reads each variable by name from varnames
and computes the product:
\[\text{diffname} = \text{varname}_0 - \text{varname}_1 - \text{varname}_1 - \dots.\]
Tests¶
Use the following commands for the usage example and testing:
./tests/elementary/test_vardiff.py