# HG changeset patch # User Jay Belanger # Date 1116419670 0 # Node ID 7e497f7bc556390bfc9263ff61158f1564f4a3f9 # Parent e454fb80ab88af858cc3071cae12baf79ed839a4 (math-factor-poly-coefs): Make sure the terms in linear factors in proper order. diff -r e454fb80ab88 -r 7e497f7bc556 lisp/calc/calc-poly.el --- a/lisp/calc/calc-poly.el Wed May 18 11:25:58 2005 +0000 +++ b/lisp/calc/calc-poly.el Wed May 18 12:34:30 2005 +0000 @@ -692,12 +692,13 @@ ;; Check if linear in math-fet-x. ((not (cdr (cdr p))) - (math-add (math-factor-protect - (math-sort-terms - (math-factor-expr (car p)))) - (math-mul math-fet-x (math-factor-protect - (math-sort-terms - (math-factor-expr (nth 1 p))))))) + (math-sort-terms + (math-add (math-factor-protect + (math-sort-terms + (math-factor-expr (car p)))) + (math-mul math-fet-x (math-factor-protect + (math-sort-terms + (math-factor-expr (nth 1 p)))))))) ;; If symbolic coefficients, use FactorRules. ((let ((pp p))