3.20. __nv_cbrtf

float @__nv_cbrtf(float %x)

Calculate the cube root of the input argument.

Calculate the cube root of x, \(x^{1/3}\).

Note

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

Returns

Returns \(x^{1/3}\).

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

  • __nv_cbrtf( \(\pm \infty\) ) returns \(\pm \infty\).