| 1 | initial version |
This should do the job:
.apply_map(lambda t: t.full_simplify())
| 2 | No.2 Revision |
This should do the job:Wel, first .simplify_full() does work for me - like in this example:
.apply_map(lambda t: t.full_simplify())
q = var('q')
v = vector( (-(q + 1/q)*q^2 + q^3 + q, 0, 0, 0, 0, 0, 0, 0) )
print( v.simplify_full() )
Alternatively, you can explicitly apply .simplify_full() to each element:
print( v.apply_map(lambda t: t.full_simplify()) )
| 3 | No.3 Revision |
Wel, first First off, .simplify_full() does work for me - like in this example:
q = var('q')
v = vector( (-(q + 1/q)*q^2 + q^3 + q, 0, 0, 0, 0, 0, 0, 0) )
print( v.simplify_full() )
Alternatively, you can explicitly apply .simplify_full() to each element:
print( v.apply_map(lambda t: t.full_simplify()) )
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.