Hi there,
I'm new to Sage and I'm trying to find my way around, being more or
less successful. Today
I ran into a problem which I couldn't solve even after trying for
several hours. It's actually very
simple so I fear I am a little bit dumb here.
Take the following for example:
x,y,a =var('x y a', domain=RR)
((x-y)**2*((x-y)**2)**a)
I expected that this expression would simplify to
((x-y)**2)**a
or
(x-y)**(2*a)
but it didn't. Playing around with the various simplify commands known
to me, simplify_rational()
actually comes closest to the desired result, but it expands the
polynomial. No big deal in this case
but it becomes very confusing when one introduces polynomials of
higher degrees. After browsing
the group for related issues, I'm aware of the fact, that
simplification is highly nontrivial. Nevertheless,
this example seems to be so simple that there must be a way to achieve
the desired result. I would
be very grateful if someone lended a helping hand.
Best regards
Thomas
--
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