3.235. __nv_log1p

double @__nv_log1p(double %x)

Calculate the value of \(log_{e}(1+x)\) \(\lfloor x \rfloor\).

Calculate the value of \(log_{e}(1+x)\) \(\lfloor x \rfloor\) of the input argument x.

Note

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

Returns

  • __nv_log1p( \(\pm 0\) ) returns \(-\infty\).

  • __nv_log1p(-1) returns +0.

  • __nv_log1p(x) returns NaN for x < -1.

  • __nv_log1p( \(+\infty\) ) returns \(+\infty\).