The following packages work well with matracies:

I think in your case you are saying that there are some unknowns inside a matrix that need to be solved, so I would recommend having a look into the symbolic maths toolbox with MATLAB to see if it provides support for your problem. If you post an example, you might get some more problem specific advice from users who have dealt with similar problems in the past.Code:1) MATLAB 2) Octave 3) Python + Numpy

Elbarto