| 1 | initial version |
Use mpmath operations to mpmath matrices
M=mp.matrix([[2,0],[0,2]])
mp.inverse(M)
matrix(
[['0.5', '0.0'],
['0.0', '0.5']])
| 2 | No.2 Revision |
Use mpmath operations to mpmath matrices
M=mp.matrix([[2,0],[0,2]])
mp.inverse(M)
matrix(
[['0.5', '0.0'],
['0.0', '0.5']])
Yoy can also control precision in sage:
sage: m=matrix(RealField(100),[[2,0],[0,2]])
sage: m^-1
[0.50000000000000000000000000000 0.00000000000000000000000000000]
[0.00000000000000000000000000000 0.50000000000000000000000000000]
| 3 | No.3 Revision |
Use mpmath operations to mpmath matrices
M=mp.matrix([[2,0],[0,2]])
mp.inverse(M)
matrix(
[['0.5', '0.0'],
['0.0', '0.5']])
Yoy You can also control precision in sage:Sage:
sage: m=matrix(RealField(100),[[2,0],[0,2]])
sage: m^-1
[0.50000000000000000000000000000 0.00000000000000000000000000000]
[0.00000000000000000000000000000 0.50000000000000000000000000000]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.