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

Error on 0 precision during Quo (and others?) #2

Closed
maddyblue opened this issue Dec 16, 2016 · 0 comments
Closed

Error on 0 precision during Quo (and others?) #2

maddyblue opened this issue Dec 16, 2016 · 0 comments

Comments

@maddyblue
Copy link
Contributor

No description provided.

maddyblue added a commit that referenced this issue Jan 13, 2017
Various functions (quo, ln, log10, pow, exp) have poor performance
because they made some arbitrary increases to precision. This commit
removes many of those increases and makes some refactors to produce
more accurate results faster.

Quo is now based on the description given on the GDA site. In addition
to being faster, it is not much more accurate, since for some very
bad inputs it would return 0 instead of a correct result. This was
because the c.Precision*2 + 8 precision calculation would be not
precision enough.

Exp is now based on the algorithm given in Variable Precision
Exponential Function by T. E. Hull and A. Abrham (ACM Transactions
on Mathematical Software, Vol 12 #2, pp79–91, ACM, June 1986).

The other functions were able to remove some of their various precision
increases (but not all, see Ln) with great speed increases.
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

1 participant