Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 1511 by Toon.Verstraelen: weird error with evalf http://code.google.com/p/sympy/issues/detail?id=1511
t...@molmod22 ~> isympy Python 2.5.2 console for SymPy 0.6.5.beta3-git These commands were executed: >>> from __future__ import division >>> from sympy import * >>> x, y, z = symbols('xyz') >>> k, m, n = symbols('kmn', integer=True) >>> f, g, h = map(Function, 'fgh') Documentation can be found at http://sympy.org/ In [1]: N(pi, 25) Out[1]: 3.141592653589793238462643 In [2]: N(E, 25) Out[2]: 2.718281828459045235360287 In [3]: N(x + pi, 25) Out[3]: 3.141592653589793238462643 + x In [4]: N(x + E, 25) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /home/toon/<ipython console> in <module>() /home/toon/lib/python/sympy/core/evalf.pyc in N(x, n, **options) 1050 >>> N(Sum(1/k**k, (k, 1, oo)), 4) 1051 1.291 1052 1053 """ -> 1054 return sympify(x).evalf(n, **options) /home/toon/lib/python/sympy/core/evalf.pyc in Basic_evalf(x, n, **options) 1011 except NotImplementedError: 1012 # Fall back to the ordinary evalf -> 1013 v = x._eval_evalf(prec) 1014 if v is None: 1015 return x /home/toon/lib/python/sympy/core/basic.pyc in _seq_eval_evalf(self, prec) 1983 1984 def _seq_eval_evalf(self, prec): -> 1985 return self.__class__(*[s._evalf(prec) for s in self.args]) 1986 1987 def _to_mpmath(self, prec, allow_ints=True): /home/toon/lib/python/sympy/core/basic.pyc in _evalf(self, prec) 1974 def _evalf(self, prec): 1975 """Helper for evalf. Does the same thing but takes binary precision""" -> 1976 r = self._eval_evalf(prec) 1977 if r is None: 1978 r = self /home/toon/lib/python/sympy/core/numbers.pyc in _eval_evalf(self, prec) 1329 1330 def _eval_evalf(self, prec): -> 1331 return Real._new(self._as_mpf_val(prec), prec) 1332 1333 def _eval_derivative(self, s): /home/toon/lib/python/sympy/core/numbers.pyc in _as_mpf_val(self, prec) 1401 1402 def _as_mpf_val(self, prec): -> 1403 return mlib.fe(prec) 1404 1405 def approximation_interval(self, number_cls): AttributeError: 'module' object has no attribute 'fe' In [5]: -- 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 sympy-issues@googlegroups.com To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---