Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3736 by [email protected]: big numbers fail
http://code.google.com/p/sympy/issues/detail?id=3736
I'm not sure if this is an issue for mpmath instead, but I'll post it here
since I encountered it while using SymPy. The traceback I get from SymPy is
different than the one I get from mpmath's trunk, anyway. Here is the error
(from a regular python session, so the traceback is more compact than
IPython):
from sympy import exp, E
sk = exp(exp(exp(exp(7.705))))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/sy/local/lib/python2.7/site-packages/sympy/core/cache.py",
line 92, in wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File "/tmp/sy/local/lib/python2.7/site-packages/sympy/core/function.py",
line 287, in __new__
return result.evalf(mlib.libmpf.prec_to_dps(pr))
File "/tmp/sy/local/lib/python2.7/site-packages/sympy/core/evalf.py",
line 1280, in evalf
result = evalf(self, prec + 4, options)
File "/tmp/sy/local/lib/python2.7/site-packages/sympy/core/evalf.py",
line 1180, in evalf
r = rf(x, prec, options)
File "/tmp/sy/local/lib/python2.7/site-packages/sympy/core/evalf.py",
line 1150, in <lambda>
evaluate=False), prec, options),
File "/tmp/sy/local/lib/python2.7/site-packages/sympy/core/evalf.py",
line 672, in evalf_pow
return mpf_exp(yre, target_prec), None, target_prec, None
File "/tmp/sy/local/lib/python2.7/site-packages/sympy/mpmath/libmp/libelefun.py",
line 1187, in mpf_exp
t = man << offset
OverflowError: long int too large to convert to int
Same error for E**E**E**E**7.705
WolframAlpha handles this fine, converting it to a base 10 representation.
This particular number is Skewes's Number, not just a large number pulled
from thin air (http://en.wikipedia.org/wiki/Skewes'_number).
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.