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
Refactor numerical_approx() #13055
Comments
This comment has been minimized.
This comment has been minimized.
Changed keywords from numerical_approx to numerical_approx, sd40.5 |
This comment has been minimized.
This comment has been minimized.
comment:7
I doubt that this is a bug. How would you guess the default precision for the |
This comment has been minimized.
This comment has been minimized.
comment:11
Hmm, I'm not sure this is wontfix, though. I'm sympathetic to your argument, but Doug's point that
seems good; you shouldn't lose precision, should you? (Forget about hold!) |
comment:12
Losing precision is a feature of the If you think that |
comment:13
About
|
comment:14
Exactly, which is why I didn't use that example. Okay, I don't have that much invested in this. But then
should really be improved, and possibly the documentation for other versions of |
comment:17
One other detail which is wrong in the "at least" in "at least prec bits of precision". Certainly for the global |
Changed keywords from numerical_approx, sd40.5 to numerical_approx, sd40.5, days74 |
This comment has been minimized.
This comment has been minimized.
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
New commits:
|
comment:24
Most of the changes look good to me, but I don't like the new description of And—just wondering, I have nothing against that choice—is there a reason why you didn't put the generic implementation directly in |
comment:25
Replying to @mezzarobba:
Because of the "put code to convert non-Elements to Elements before calling it" part. I don't know how to do that in general. |
comment:26
ping |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Reviewer: Marc Mezzarobba |
comment:28
I still disagree about the docstring of |
Changed branch from u/jdemeyer/document_default_precision_for__n___method to |
Changed commit from |
Drop the
_numerical_approx
method, instead usenumerical_approx
. Move the generic implementation to a new Cython file. Also put the conversion of decimal digits to bits in one place.Finally, the documentation of
numerical_approx
should be made more clear and consistent.CC: @benjaminfjones
Component: basic arithmetic
Keywords: numerical_approx, sd40.5, days74
Author: Jeroen Demeyer
Branch:
fd79227
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/13055
The text was updated successfully, but these errors were encountered: