Skip to content

Advanced Math

These instructions execute complex mathematical functions including trigonometric, hyperbolic, logarithmic, and root operations.

OpcodeArgumentsOperands (stack)Description
sin / costypevalSine or Cosine trigonometric operation
tantypevalTangent trigonometric operation
sinh / coshtypevalHyperbolic Sine or Cosine operation
tanhtypevalHyperbolic Tangent operation
asin / acostypevalArcsine or Arccosine trigonometric operation
atantypevalArctangent trigonometric operation
atan2typeval1, val2Two-argument Arctangent operation
asinh / acoshtypevalInverse Hyperbolic Sine or Cosine operation
atanhtypevalInverse Hyperbolic Tangent operation
sqrt / cbrttypevalSquare Root or Cube Root operation
lntypevalNatural Logarithm operation
log2 / log10typevalLogarithm operation with base 2 or 10
exptypevalNatural Exponential function