You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While experimenting with symbolic derivation by matrices, I came across the following strange behavior. Do I need a special function to sum up two expressions or is it a bug?
I found some difference in results of Derivative(Trace(E) + 1, E).doit() and ArrayDerivative(Trace(E) + 1, E).doit(), so that may be able to point out some bug in the implementation.
While experimenting with symbolic derivation by matrices, I came across the following strange behavior. Do I need a special function to sum up two expressions or is it a bug?
Code
import sympy as sym
sym.init_printing()
E = sym.MatrixSymbol('E', 3, 3)
print((sym.Trace(E)**2 + 0).diff(E))
print((sym.Trace(E)**2 + 1).diff(E))
Output
(2*Trace(E))*I
0
The text was updated successfully, but these errors were encountered: