Hi Dylan, On Fri, Apr 24, 2009 at 4:32 AM, drupel <dylanru...@gmail.com> wrote: > > Hi all: > I am using Sage Version 3.4, Release Date: 2009-03-11. I asked Sage > to simplify the following expression: > -q^(5/2)*(q^2*x2^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)*(q^2 + 1) > *x2^2 + sqrt(q) > by calling the simplify command: > simplify(-q^(5/2)*(q^2*x2^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)* > (q^2 + 1)*x2^2 + sqrt(q)) > but the output was exactly the same as what I put in. In my code > ahead of this I have > R=PolynomialRing(ZZ,'q') > var('q') > Any suggestions would be much appreciated.
Try this: [mv...@sage ~]$ sage ---------------------------------------------------------------------- | Sage Version 3.4.1, Release Date: 2009-04-21 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: q, x2 = var("q, x2") sage: simplify(expand(-q^(5/2)*(q^2*x2^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)*(q^2 q^(3/2)*x2^2 + sqrt(q) -- Regards Minh Van Nguyen --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---