num-complex icon indicating copy to clipboard operation
num-complex copied to clipboard

Add ln_1p and exp_m1

Open soumyasen1809 opened this issue 1 year ago • 2 comments

Fixes issue #123

soumyasen1809 avatar Sep 19 '24 16:09 soumyasen1809

I propose to add a test for ln_1p() that checks that $\ln(1+z)=z$ for $z=\epsilon+i\epsilon$, where $\epsilon=$std::f64::EPSILON. In my opinion this test should pass within 1ulp.

Expander avatar Jul 19 '25 16:07 Expander

julia has a reference implementation that can be found here: https://github.com/JuliaLang/julia/blob/5ebc5b463ead44e98a3108a477084bdd591e3d8e/base/complex.jl#L748

Expander avatar Jul 20 '25 11:07 Expander