Status: Valid
Owner: ----
Labels: Type-Defect Priority-Low Evalf

New issue 4070 by [email protected]: Subs instance fails with evaluation
http://code.google.com/p/sympy/issues/detail?id=4070

Eq(x,0).diff(x).subs(x,1)
Subs(Derivative(x == 0, x), (x,), (1,))
_.n()

this generates a recursion error, the last several lines of which are:

  File "sympy\core\function.py", line 1410, in evalf
    return self.doit().evalf(**options)
  File "sympy\core\function.py", line 1410, in evalf
    return self.doit().evalf(**options)
  File "sympy\core\function.py", line 1406, in doit
    return self.expr.doit().subs(list(zip(self.variables, self.point)))
  File "sympy\core\function.py", line 1121, in doit
    expr = expr.doit(**hints)
  File "sympy\core\relational.py", line 215, in doit
    return self._eval_relation_doit(lhs, rhs)
  File "sympy\core\relational.py", line 245, in _eval_relation_doit
    return Eq(lhs, rhs)
  File "sympy\core\relational.py", line 49, in Eq
    return Relational(a, b, '==')
  File "sympy\core\relational.py", line 163, in __new__
    diff = lhs - rhs
  File "sympy\core\decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "sympy\core\decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "sympy\core\expr.py", line 152, in __sub__
    return Add(self, -other)
  File "sympy\core\cache.py", line 90, in wrapper
    return func_cache_it_cache[k]
  File "sympy\core\numbers.py", line 1677, in __hash__
    return super(Integer, self).__hash__()
  File "sympy\core\numbers.py", line 1364, in __hash__
    return super(Rational, self).__hash__()
  File "sympy\core\numbers.py", line 384, in __hash__
    return super(Number, self).__hash__()
RuntimeError: maximum recursion depth exceeded while calling a Python object


--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to