Ordering of expressions
|
06-03-2016, 02:42 AM
Post: #1
|
|||
|
|||
Ordering of expressions
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 =) |
|||
06-03-2016, 04:47 AM
Post: #2
|
|||
|
|||
RE: Ordering of expressions
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. TW Although I work for HP, the views and opinions I post here are my own. |
|||
06-03-2016, 11:12 AM
Post: #3
|
|||
|
|||
RE: Ordering of expressions
Please include a flag automatic ordering in the next firmware, otherwise a presentation in a classroom requires simplify repetitively
|
|||
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- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)