Skip to content

Trigonometry ​

These instructions evaluate scalar trigonometric, inverse, and hyperbolic functions.

OpcodeArgumentsOperands (stack)Description
sin / cos / tantypevalueReplaces one operand with its sine, cosine, or tangent; type must be hlf, flt, or dbl.
asin / acos / atantypevalueReplaces one operand with its inverse sine, cosine, or tangent; type must be hlf, flt, or dbl.
atan2typey, xReplaces two operands with atan2(y, x); x is on top, and type must be hlf, flt, or dbl.
sinh / cosh / tanhtypevalueReplaces one operand with its hyperbolic sine, cosine, or tangent; type must be hlf, flt, or dbl.
asinh / acosh / atanhtypevalueReplaces one operand with its inverse hyperbolic sine, cosine, or tangent; type must be hlf, flt, or dbl.