Advanced Math
These instructions execute complex mathematical functions including trigonometric, hyperbolic, logarithmic, and root operations.
| Opcode | Arguments | Operands (stack) | Description |
|---|---|---|---|
sin / cos | type | val | Sine or Cosine trigonometric operation |
tan | type | val | Tangent trigonometric operation |
sinh / cosh | type | val | Hyperbolic Sine or Cosine operation |
tanh | type | val | Hyperbolic Tangent operation |
asin / acos | type | val | Arcsine or Arccosine trigonometric operation |
atan | type | val | Arctangent trigonometric operation |
atan2 | type | val1, val2 | Two-argument Arctangent operation |
asinh / acosh | type | val | Inverse Hyperbolic Sine or Cosine operation |
atanh | type | val | Inverse Hyperbolic Tangent operation |
sqrt / cbrt | type | val | Square Root or Cube Root operation |
ln | type | val | Natural Logarithm operation |
log2 / log10 | type | val | Logarithm operation with base 2 or 10 |
exp | type | val | Natural Exponential function |