How to import Matrices from Matlab or mathematica to sympy or python

152 views
Skip to first unread message

usman rauf

unread,
Feb 26, 2014, 5:21:28 PM2/26/14
to sy...@googlegroups.com
Hi,

I am a frequent user of Mathematica, and trying to switch to sympy. Can any one explain me how to import Large matrices from Mathematica or matlab to Sympy or Py? As I have to perform some symbolic computation on matrix and entries of matrix would contain real number and ( uninterpreted ) symbols both and their multiplications as well as an entry of the matrix.

One more question: If mathematica didn't work for calculating eigenvalues of a matrix, is it possible that Sympy works for the same problem ? Is it symbolically more efficient then Mathematica?


Thanks

Ondřej Čertík

unread,
Feb 26, 2014, 5:30:07 PM2/26/14
to sympy
SymPy itself is typically slower than Mathematica. We also have a fast
core written
in C++ (https://github.com/certik/csympy), that seems to be quite
comparable to Mathematica speed.
It doesn't support Matrices yet, but it's on a TODO list.

Can you post your Mathematica or Matlab code that you want to do in SymPy?
We'll go from there.

Ondrej
Reply all
Reply to author
Forward
0 new messages