Hi!
I'm trying to simplify expressions in the form of "a*b*c + d*e + f - g*h*h
+ i*a", basically the terms can be either added or subtracted and each term
is a product of some symbols.
For example, I would like to turn the expression:
a**4 - 4*a**3*b + 6*a**2*b**2 - 4*a*b**3 - a + b**4
into:
(a - b)**4 - a
Both "simplify" and "factor" do not work. I tried to ask around about it
but so far without luck. And that brings me here...
1. Are there any tricks in SymPy which could simplify the above expression?
2. If no, is it even possible to do such "compressions" in theory? The
problem seems to be that sometimes one needs to add an expression only to
be able to reduce some other expressions.
3. If I knew that one term is in the form of "(a - b)", would the help?
4. If all the answers turns out to be "no", what can I do? Could someone
recommend a strategy on how to tackle such expression?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/c51d9a5b-a9a0-4e65-9627-820b5e3a48af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.