Post Reply 
Ordering of expressions
06-03-2016, 12:15 PM
Post: #4
RE: Ordering of expressions
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-
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Ordering of expressions - compsystems - 06-03-2016, 02:42 AM
RE: Ordering of expressions - Tim Wessman - 06-03-2016, 04:47 AM
RE: Ordering of expressions - compsystems - 06-03-2016, 11:12 AM
RE: Ordering of expressions - DrD - 06-03-2016 12:15 PM



User(s) browsing this thread: 1 Guest(s)