Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp2, exp10, log2, log10 implimentation #16

Closed
oscardssmith opened this issue Jan 6, 2021 · 2 comments
Closed

exp2, exp10, log2, log10 implimentation #16

oscardssmith opened this issue Jan 6, 2021 · 2 comments

Comments

@oscardssmith
Copy link

It is probably a good idea to use exp2 as the fundamental exponential function (it has fewer roundings) and then just implement exp and exp10 with an extra multiple by log2(e) and log2(10) respectively. A similar strategy can be used for logarithms.

@dzhang314
Copy link
Owner

Hey @oscardssmith , thanks for your interest in MultiFloats.jl! This is a great idea, as it simplifies the argument reduction step from subtracting an integer multiple of log(2) to simply subtracting an integer. I'll give this a shot, and if the benchmarks turn out favorably, you can expect to see this implemented in the next release.

@dzhang314
Copy link
Owner

Closing this issue to track in #28 instead.

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

No branches or pull requests

2 participants