Hi,
so here is some sample code:
var('chi,k')
R.<x>=SR[]
I=R.ideal(x^2)
Rbar.<epsilon>=R.quotient_ring(I)
expr=Rbar(epsilon-(chi^(k-1))^5+chi^(2*k-2)*(chi^(k-1))^3)
view(expr)
print (expr)
exprnice=simplify(expr)
view(exprnice)
exprnice2=simplify(expand(expr))
view(exprnice2)
exprnice3=expand(simplify(expr))
view(exprnice3)
The expression entered is manifestly equal to epsilon (the last two
terms are negatives of each other). However, each of the 'view'
commands outputs the full expression as entered. Intriguingly, the
'print' command is able to simplify the expression and outputs
'epsilon'. I just want to be able to simplify the expression so that I
can 'view' it. (In reality I have a 16x16 matrix of expressions more
complicated than this one, and I'd like to be able to 'view' them in
their simplified form).
Thank you very much,
+Rob
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org