Matrices and mpmath
Hello, I'm trying to work with matrices. I type
matrix(4) and it gives me a 4 by 4 matrix of zeros
which is fine. But when I use the command
from mpmath import * then try to create matrices with the same command (
matrix(4)) it gives an error message as below:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_10.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("dD1tYXRyaXgoNSk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module> File "/tmp/tmpdJ1MFV/___code___.py", line 3, in <module> exec compile(u't=matrix(_sage_const_5 ) File "", line 1, in <module> File "/sagenb/sage_install/sage-5.4-sage.math.washington.edu-x86_64-Linux/local/lib/python2.7/site-packages/mpmath/matrices/matrices.py", line 332, in __init__ raise TypeError('could not interpret given arguments') TypeError: could not interpret given arguments
Since I need this command (
from mpmath import *) for other operations, I have to use it. On the
other hand it disrupts my matrix calculations. Is there anyway which I can have both working together in Sage similar to ipython?
Any help would be appreciated. Thank you.