1

I frequently deal with matrix/vector calculus problems and would like to get the answers in matrix/vector form. The number of elements in these matrices and vectors is not specified, and the desired results are in matrix form anyway, not exploded out elements.

For example: d/dx x'Cx = x'(C'+C)

(x is column vector, C is a matrix and ' means transpose)

Is there a symbolic solver that could tell me that? As it stands now, I can use Matlab's solver if I make example vectors and matrices with all elements specified, but then it's on me to interpret the mess that comes out and try to form it back into the original matrices and vectors.

Mastiff
  • 135

1 Answers1

2

Sympy has some ability to deal with vectors (related documentation)

tbrugere
  • 360