3.236. __nv_log1pf

float @__nv_log1pf(float %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, Single-Precision Floating-Point Functions section.

Returns

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

  • __nv_log1pf(-1) returns +0.

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

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