3.19. __nv_cbrt

double @__nv_cbrt(double %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, Double-Precision Floating-Point Functions section.

Returns

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

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

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