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

◆ clog1p_sub()

void clog1p_sub ( doublecomplex  z,
doublecomplex *  log1pz 
)

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

Purpose
clog1p_sub evaluates ln(1 + z) accurately in the sense of relative error when z is very small.
clog1p_sub is the subroutine version of clog1p.
Parameters
[in]zComplex argument z. (z != -1)
[out]log1pzln(1 + z).
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.