| Virtual Choreographer Reference Guide (version 1.4) | ||
|---|---|---|
| Prev | Chapter 8. VC Arithmetics | |
The table below details the numerical functions currently implemented in VC. The unit of the angular values (inputs for trigonometric functions or outputs for inverse trigonometric functions) is degree.
| Function | Id | Arg1 | Arg2 | Return |
|---|---|---|---|---|
| Arg1 to the power of Arg2 | pow | FLOAT | FLOAT | FLOAT |
| random value between Arg1 and Arg2 | rand | FLOAT | FLOAT | FLOAT |
| maximal value of Arg1 and Arg2 | max | FLOAT | FLOAT | FLOAT |
| minimal value of Arg1 and Arg2 | min | FLOAT | FLOAT | FLOAT |
| rounding Arg1 to nearest integer | round | FLOAT | None | INT |
| square root of Arg1 | sqrt | FLOAT | None | FLOAT |
| largest integral value not greater than Arg1 | floor | FLOAT | None | INT |
| cosine of Arg1 | cos | FLOAT | None | FLOAT |
| sine of Arg1 | sin | FLOAT | None | FLOAT |
| tangent of Arg1 | tan | FLOAT | None | FLOAT |
| inverse cosine of Arg1 | acos | FLOAT | None | FLOAT |
| inverse sine of Arg1 | asin | FLOAT | None | FLOAT |
| inverse tangent of Arg1 | atan | FLOAT | None | FLOAT |
| natural logarithm of Arg1 | log | FLOAT | None | FLOAT |
| absolute value of Arg1 | abs | FLOAT | None | FLOAT |
| sign of Arg1 (+1 if >0, -1 if <0, O if null) | sign | FLOAT | None | FLOAT |
| inversion of Arg1 | inv | FLOAT or INT MATRIX | None | FLOAT or INT MATRIX |
| norm of Arg1 | norm | FLOAT or INT TABLE | None | FLOAT |
The following expression is an example of vector norm computation.