XLPack 6.1
C/C++ API Reference Manual (Basic module)
Loading...
Searching...
No Matches

◆ _clog1p()

double _Complex _clog1p ( double _Complex  z)

Evaluate ln(1+z) accurate in the sense of relative error

Purpose
clog1p evaluates ln(1 + z) accurately in the sense of relative error when z is very small.
Returns
ln(1 + z).
Parameters
[in]zComplex argument z. (z != -1)
Error handling
  • If z = -1, domain error (EDOM) occurs.
  • If z is too near -1, range error (EDOM) occurs but calculation is continued (precision warning).
  • Other range error (ERANGE) may occur.