Comment #2 on issue 1512 by Toon.Verstraelen: internal code broken in
sympy.core.numbers
http://code.google.com/p/sympy/issues/detail?id=1512
I did bother me before, but I didn't get a clue what was going wrong:
Before your patch:
>>> from sympy import *
>>> x = symbols('x')
>>> N(E+x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy/core/evalf.py", line 1054, in N
return sympify(x).evalf(n, **options)
File "sympy/core/evalf.py", line 1013, in Basic_evalf
v = x._eval_evalf(prec)
File "sympy/core/basic.py", line 1989, in _seq_eval_evalf
return self.__class__(*[s._evalf(prec) for s in self.args])
File "sympy/core/basic.py", line 1980, in _evalf
r = self._eval_evalf(prec)
File "sympy/core/numbers.py", line 1331, in _eval_evalf
return Real._new(self._as_mpf_val(prec), prec)
File "sympy/core/numbers.py", line 1403, in _as_mpf_val
return mlib.fe(prec)
AttributeError: 'module' object has no attribute 'fe'
After:
>>> from sympy import *
>>> x = symbols('x')
>>> N(E+x)
2.71828182845905 + x
Thanks! I've attached a patch with tests.
Attachments:
0002-Tests-for-issue-1512.patch 1.4 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---