Skip to content

Conversation

soumyasen1809
Copy link

Fixes issue #123

- Added a complex equivalent of the real function ln_1p()
- Added doc with formula and test
for ln_1p()
- Added a complex equivalent of the real function exp_m1()
- Added doc with formula and test
for exp_m1
- Added tests for them
@Expander
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants