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

◆ _clog1p_sub()

void _clog1p_sub ( double _Complex  z,
double _Complex *  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.