It's only 2*A*x is A is symmetric (A.T = A). Otherwise it's (A.T + A). That said, I don't think Matrix Expressions support derivatives at the moment.
Cheers, Tim. On 2014-04-28, at 1:27 PM, Gustavo <[email protected]> wrote: > Can I have matrices and vectors A and x with compatible but unspecified > dimensions. And get diff(x.T * A * x , x) return 2*A*x ? > > Thanks, > Gustavo -- 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 http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/340D188D-2402-47E1-829B-1E42297C89BD%40gmail.com. For more options, visit https://groups.google.com/d/optout.
