diff options
author | Jay Belanger <jay.p.belanger@gmail.com> | 2005-05-18 12:34:30 +0000 |
---|---|---|
committer | Jay Belanger <jay.p.belanger@gmail.com> | 2005-05-18 12:34:30 +0000 |
commit | bfdb6aebd9bbe95ba454a9a8adcf8e8276defd59 (patch) | |
tree | b680733f74204d46fe1f685bf09c81f3fa9df651 /lisp/calc | |
parent | 2470aebd1094b54047f8d9852cb6c8d81e7c3a7d (diff) | |
download | emacs-bfdb6aebd9bbe95ba454a9a8adcf8e8276defd59.tar.gz |
(math-factor-poly-coefs): Make sure the terms in linear factors in proper
order.
Diffstat (limited to 'lisp/calc')
-rw-r--r-- | lisp/calc/calc-poly.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/calc/calc-poly.el b/lisp/calc/calc-poly.el index e2b434be109..89d8273d6d6 100644 --- a/lisp/calc/calc-poly.el +++ b/lisp/calc/calc-poly.el @@ -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)) |