Maple Grouping Terms with Maple: Simplify Expressions with e | Step-by-Step Guide

AI Thread Summary
To group terms with the variable 'e' in the expression expr1:=x*e^2+y*e+(x^2-1)*e^2 using Maple, the command to use is collect(x*e^2+y*e+(x^2-1)*e^2,e). This command successfully organizes the expression into the desired format, resulting in expr2:=e^2*(x+x^2-1)+e*y. The discussion confirms that this output meets the user's requirements.
vlad2006
Messages
3
Reaction score
0
I have an expression like this:
expr1:=x*e^2+y*e+(x^2-1)*e^2
How i can, using maple, group terms with e.
In this case with result like:
expr2:=e^2*(x+x^2-1)+e*y
 
Physics news on Phys.org
use the command:

collect(x*e^2+y*e+(x^2-1)*e^2,e);

which has the result:

(x+x^2-1)*e^2+y*e
 
Thanks for reply! that is what i want!
Thanks again!
 
Back
Top