After saying
R.<t> = PolynomialRing(QQ)
both of these works:
expand ( (t-(5-sqrt(7))) * (t-(5+sqrt(7))) )
expand ( (t-(5-sqrt(7))) * (t-(5+sqrt(7))) )
and I got t^2 - 10*t + 18 and t^2 - 4*t + 1 as expected. However,
expand ( (t-(2-sqrt(3))) * (t-(2+sqrt(3))) * (t-(5-sqrt(7))) * (t-(5+sqrt(7)))
)
does not work in a similar way. If I put ".simplify_full()" at the end of the
expression, I got simplified answer.
What is logic behind this?
--
Jori Mäntysalo
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org