Mathematica Asked on February 21, 2021
I have a multivariable polynomial, for instance: $P=yx+2^4xy+3+5^2xz+3^4zx $
I would like to do the following:
extract those terms that only have $z$
extract terms that only have $y$
express my polynomial something like this: $P=z(…)+y(…)+(some constants)$
I know it’s quite easy but this is just an example what I want to do. In reality, I have a polynomial with 60 terms, so I would like to know the procedure for doing this.
You can use Collect
:
poly = Inactivate[y x + 2^4 x y + 3 + 5^2 x z + 3^4 z x, Power]
Collect[poly, {y, z}]
Correct answer by kglr on February 21, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP