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