Skip to content
fn

vsin_f32

void vsin_f32(const float * in, float * out, int n)

Single-precision elementwise sine.

Computes outi=sin⁡(ini)\text{out}_i = \sin(\text{in}_i) via vvsinf, with ∣x∣≤3.52×10−4|x| \le 3.52 \times 10^{-4} set back to x. Near odd multiples of π/2\pi/2 the result can be 1-2 ulp short of ±1\pm 1.

References

Accelerate.framework vvsinf.

Parameters

inconst float*
Input buffer (radians).
outfloat*
Output buffer.
nstd::size_t
Element count.