Clear["Global`*"]; expr = 3 – 2 x + 7 x^2.1 + x^2.4 – 5 x^3; Transpose[{Exponent[#, x], # /. x -> 1}] & /@ List @@ expr. {{0, 3}, {1, -2}, {2.1, …
Source link
How to extract coefficients and powers from expressions with non integer powers?
![How to extract coefficients and powers from expressions with non integer powers? 1](https://solutionslounge.com/wp-content/uploads/2023/11/apple-touch-icon@2.png)
Clear["Global`*"]; expr = 3 – 2 x + 7 x^2.1 + x^2.4 – 5 x^3; Transpose[{Exponent[#, x], # /. x -> 1}] & /@ List @@ expr. {{0, 3}, {1, -2}, {2.1, …
Source link