1 | initial version |
Thanks so much. Just to add this from my experience. In Sage, I do this (say A is the rational matrix):
o = open('file.txt','w') o.write(str(A.mathematica_init())) o.close()
Then in Mathematica, I do this
A = ReadList("file.txt")[[1]]
I need the [[1]] to make it as a matrix. Otherwise, it is a 3-dimensional matrix.
For MATLAB, octave_init does not work. Any suggestions would be appreciated.
I also never get Mathematica interface working in Sage (8.5 Windows 64bit version) :(
2 | No.2 Revision |
Thanks so much. Just to add this from my experience. In Sage, I do this (say A is the rational matrix):
o = open('file.txt','w')
o.write(str(A.mathematica_init()))
o.write(str(A._mathematica_init()))
o.close()
Then in Mathematica, I do this
A = ReadList("file.txt")[[1]]
I need the [[1]] to make it as a matrix. Otherwise, it is a 3-dimensional matrix.
For MATLAB, octave_init does not work. Any suggestions would be appreciated.
I also never get Mathematica interface working in Sage (8.5 Windows 64bit version) :(
3 | No.3 Revision |
Thanks so much. Just to add this from my experience. In Sage, I do this (say A is the rational matrix):
o = open('file.txt','w')
o.write(str(A._mathematica_init()))
o.close()open('file.txt','w');
o.write(str(A._mathematica_init()));
o.close();
Then in Mathematica, I do this
A = ReadList("file.txt")[[1]]
I need the [[1]] to make it as a matrix. Otherwise, it is a 3-dimensional matrix.
For MATLAB, octave_init does not work. Any suggestions would be appreciated.
I also never get Mathematica interface working in Sage (8.5 Windows 64bit version) :(