How I can do, so that the CAS displayed, orderly algebraic expressions, as they appear in the books of algebra
expand((x+y+z)^2) -> 2*x*y + 2*x*z + 2*y*z + x^2 + y^2 + z^2 =(
-> x^2 +2*x*y + 2*x*z + y^2 + 2*y*z + z^2 =)
tap simplify
expand doesn't touch the ordering because changing the order all around kind of defeats the purpose of the expansion I think.
reorder(...) lets you do it according to a specific variable order you set.
Please include a flag automatic ordering in the next firmware, otherwise a presentation in a classroom requires simplify repetitively
Would it be practical to enhance the expand() command to include an optional vector of variables?
expand((x+y+z)^2); // ==> 2*x*y+2*x*z+2*y*z+x^2+y^2+z^2
reorder(expand((x+y+z)^2,[x,y,z])); // ==> x^2+2*x*y+2*x*z+y^2+2*y*z+z^2
[Suggestion for enhancement]
expand(Expr, [Variables]); // Enhancement: (optionally), include result reordering.
-Dale-