XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ clog1p()

doublecomplex clog1p ( doublecomplex  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.