I think the issue is that you're not sympifying your arguments.

Aaron Meurer

On Jun 23, 2012, at 9:27 AM, "[email protected]"
<[email protected]> wrote:

> Hi, I know that some dislike _diff_wrt, however admitting for the
> moment that it is a good idea, can somebody help me with making this
> work:
>
> In [1]: class Blah(Expr):
>   ...:     _diff_wrt = True
>
> In [2]: c = Blah(1,2,3)
>
> In [3]: (2*c).diff(c)
> AttributeError: 'int' object has no attribute 'is_number'
>
> Why does diff care about the int inside `c`? Why doesn't this work?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" 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?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to