Skip to content

Vector Trigonometry ​

These instructions evaluate trigonometric, inverse, and hyperbolic functions element by element.

OpcodeArgumentsOperands (stack)Description
sinv / cosv / tanvtypevaluesReplaces one numeric array with an equal-length array of element-wise sine, cosine, or tangent results; type must be hlf, flt, or dbl.
asinv / acosv / atanvtypevaluesReplaces one numeric array with an equal-length array of element-wise inverse sine, cosine, or tangent results; type must be hlf, flt, or dbl.
atan2vtypey, xReplaces two equal-length numeric arrays with an equal-length array of atan2(y[i], x[i]); the x array is on top, and type must be hlf, flt, or dbl.
sinhv / coshv / tanhvtypevaluesReplaces one numeric array with an equal-length array of element-wise hyperbolic sine, cosine, or tangent results; type must be hlf, flt, or dbl.
asinhv / acoshv / atanhvtypevaluesReplaces one numeric array with an equal-length array of element-wise inverse hyperbolic sine, cosine, or tangent results; type must be hlf, flt, or dbl.