Mercurial > emacs
changeset 99929:2a48557d7247
(calcFunc-collect): Normalize the coefficients of the
polynomial rather than the whole polynomial.
author | Jay Belanger <jay.p.belanger@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 02:38:39 +0000 |
parents | ba6d5a708321 |
children | c00627133af3 |
files | lisp/calc/calc-alg.el |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calc/calc-alg.el Tue Nov 25 22:58:14 2008 +0000 +++ b/lisp/calc/calc-alg.el Wed Nov 26 02:38:39 2008 +0000 @@ -1598,8 +1598,7 @@ (defun calcFunc-collect (expr base) (let ((p (math-is-polynomial expr base 50 t))) (if (cdr p) - (math-normalize ; fix selection bug - (math-build-polynomial-expr p base)) + (math-build-polynomial-expr (mapcar 'math-normalize p) base) (car p)))) ;;; If expr is of the form "a + bx + cx^2 + ...", return the list (a b c ...),