Updates:
        Status: Fixed

Comment #3 on issue 2300 by smi...@gmail.com: x.diff(4) doesn't fail
http://code.google.com/p/sympy/issues/detail?id=2300

    >>> x.diff(4)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "sympy\core\expr.py", line 1653, in diff
        return Derivative(self, *new_symbols, **assumptions)
      File "sympy\core\function.py", line 622, in __new__
raise ValueError('Derivative expects Symbol [, Integer] args but got %s, %s'
     % (s, count))
    ValueError: Derivative expects Symbol [, Integer] args but got 4, 1
    >>> x.diff(2*x)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "sympy\core\expr.py", line 1653, in diff
        return Derivative(self, *new_symbols, **assumptions)
      File "sympy\core\function.py", line 622, in __new__
raise ValueError('Derivative expects Symbol [, Integer] args but got %s, %s'
     % (s, count))
    ValueError: Derivative expects Symbol [, Integer] args but got 2*x, 1

--
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to