This has been fixed in SymPy master.

Aaron Meurer

On Fri, Oct 21, 2016 at 7:31 AM, Jozef Vesely <[email protected]> wrote:
> Hello,
>
> I find this behaviour highly nonintuitive (buggy?).
> I would like Out[3] and Out[4] to be 1 and 0 respectively.
> Am I doing something wrong? Is there a workaround?
>
> Regards
>
> Jozef
>
>
> In [1]: v=MatrixSymbol("v",5,1)
>
> In [2]: diff(v[0]+v[1],v[0])
> Out[2]: 1
>
> In [3]: diff(v[0],v[0])
> Out[3]:
>  d
> ────(v₀₀)
> dv₀₀
>
> In [4]: diff(v[0],v[1])
> Out[4]:
>  d
> ────(v₀₀)
> dv₁₀
>
> In [5]: type(v[0])
> Out[5]: sympy.matrices.expressions.matexpr.MatrixElement
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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 https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/47f0c3bd-92fa-485e-b07f-d68a16269768%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BiZAyoaWDD9Mgu3oN0ScJ--nR3FCA_px1Mt6GFeiFL0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to