3.309. __nv_sinpif

float @__nv_sinpif(float %x)

Calculate the sine of the input argument \(\times \pi\).

Calculate the sine of x \(\times \pi\) (measured in radians), where x is the input argument.

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.

Returns

  • __nv_sinpif( \(\pm 0\) ) returns \(\pm 0\).

  • __nv_sinpif( \(\pm \infty\) ) returns NaN.