Comment #5 on issue 2293 by asmeurer: Unexpected limit behaviour
http://code.google.com/p/sympy/issues/detail?id=2293

Yeah, something similar to diff:

In [263]: x.diff(2*x)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/Users/aaronmeurer/Documents/Python/sympy/sympy/<ipython console> in <module>()

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/expr.py in diff(self, *symbols, **assumptions)
   1474         new_symbols = map(sympify, symbols) # e.g. x, 2, y, z
   1475         assumptions.setdefault("evaluate", True)
-> 1476         return Derivative(self, *new_symbols, **assumptions)
   1477
   1478     def fdiff(self, *indices):

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/function.py in __new__(cls, expr, *symbols, **assumptions)
    555
556 if i == iwas: # didn't get an update because of bad input --> 557 raise ValueError('Derivative expects Symbol [, Integer] args but got %s, %s' % (s, count))
    558
    559             symbol_count.append((s, count))

ValueError: Derivative expects Symbol [, Integer] args but got 2*x, 1

By the way, I just found a bug. x.diff(4) doesn't fail like it should. I will open a new issue for that.

--
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.

Reply via email to