| 1 | initial version |
I have to do this often, so I wrote a function:
def matrix_full_simplify(mat,m,n):
matsimp=mat;
for i in range(m):
for j in range(n):
matsimp[i,j]=mat[i,j].full_simplify();
return matsimp;
Use:
amat = matrix_full_simplify(amat)
You could easily adapt this to be better or require fewer arguments and can create a similar function for vectors.
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.