When I used an older version of Mathematica, CoefficientRules returned coefficients as entered, say x^2 +2x -4 y + 13., it returned {{2,0}->1,{1,0}->2,{0,1}->-4,{0,0}->13.} with all coefficients returned as integers except the last one.
I used this to identify non-valid (== non-integral) coefficients in my polynomial.
In version 13 of Mathematica, if I enter one coefficient as non-integral all other integer coefficients are returned as non-inetrgral as well.
I real want to have all coefficients in my polynomials returned as given.
Any suggestions?
Kent
CoefficientRules[poly // Rationalize]– Bob Hanlon Jun 06 '22 at 18:42{2, 0} -> 1, {1, 0} -> 2, {0, 1} -> -4, {0, 0} -> 13.}. – Michael Seifert Jun 06 '22 at 19:01ReplacePart[CoefficientRules[poly // Rationalize], -1 -> ({0, 0} -> (poly /. Thread[Variables[poly] -> 0]))]– Bob Hanlon Jun 06 '22 at 19:27