-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Overflow in computation with large integers #103
Comments
If you set The variable "poly" is stored symbolically as a Mathics Expression, but freeterm isn't - all of those calculations in large precision are being done which is why freeterm is slow. Of course change the |
Actually, the evaluation is "fast": what is very slow in Mathics is to show the 609152 digits of the number. WMA does it pretty fast, while the experiment in Sympy converts it to a floating point number. In Mathics, this last conversion produces the overflow, because the number is too large to be converted to a MachineReal number. I think this part is easy to fix (see PR #106). |
See also #111 (comment) |
This example is from the mathematica docs:
https://reference.wolfram.com/language/tutorial/DiophantineReduce.html
This calculation produces a large integer and then numerical evaluation overflows somehow:
Also displaying
freeterm
is very slow.By contrast with SymPy (not sure if SymPy is actually involved here):
The text was updated successfully, but these errors were encountered: