Timeline for answer to Separating terms in an expression with many variables by their "nature" by Bob Hanlon
Current License: CC BY-SA 4.0
Post Revisions
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 23, 2022 at 16:43 | vote | accept | Andy Ayr | ||
| Jan 23, 2022 at 16:43 | comment | added | Andy Ayr |
Bob, assembly (bracketing) can be done with a simpler command. Other than that, your vectorization code is perfectly functional. I accept it as an answer. Total@MonomialList[f, {x, y, z}]
|
|
| Jan 23, 2022 at 16:28 | comment | added | Bob Hanlon | I think the edit does what you want; however, it is best to provide the desired output in addition to the input. | |
| Jan 23, 2022 at 16:25 | history | edited | Bob Hanlon | CC BY-SA 4.0 |
Modified definition of split to handle other inputs
|
| Jan 23, 2022 at 8:20 | comment | added | Andy Ayr |
A very good and clear example. Thank you! But this code didn't work for this expression. f=Sin[\[Alpha]] Cos[\[Beta]] Sin[\[Gamma]] x^2 y + Sin[\[Beta]] Cos[\[Alpha]] Sin[\[Gamma]]^4 x^2 y + Sin[\[Alpha]]^2 Cos[\[Beta]] x y z + (Sin[\[Alpha]] Cos[\[Beta]] + 1) x^3 y^2 z^5. Terms with x^2 y not merged, although first we need to take this term out of the bracket
|
|
| Jan 23, 2022 at 7:54 | history | answered | Bob Hanlon | CC BY-SA 4.0 |