BasicFunctionsLogRel(Complex) Method |
LogRel(z) = log(1+z) with relative error accuracy near z = 0.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static Complex LogRel(
Complex z
)
Parameters
- z Complex
- The complex argument z.
Return Value
ComplexLog(1+z) with relative error accuracy near z=0.
Remarks April 1977 version. W. Fullerton, c3, Los Alamos Scientific Lab.
let rho = abs(z) and
r**2 = abs(1+z)**2 = (1+x)**2 + y**2 = 1 + 2*x + rho**2 .
now if rho is small we may evaluate LogRel(z) accurately by
log(1+z) = complex (log(r), arg(1+z))
= complex (0.5*log(r**2), arg(1+z))
= complex (0.5*LogRel(2*x+rho**2), arg(1+z))
See Also