Commit 9f6a59d1 authored by Jay Belanger's avatar Jay Belanger
Browse files

(calcFunc-collect): Normalize the coefficients of the

polynomial rather than the whole polynomial.
parent c8ca9217
2008-11-26 Vincent Belaïche <vincent.b.1@hotmail.fr>
* calc/calc-alg.el (calcFunc-collect): Normalize the coefficients
of the polynomial rather than the whole polynomial.
2008-11-25 Chong Yidong <cyd@stupidchicken.com>
 
* mail/mailabbrev.el (define-mail-abbrev): When reading from
......
......@@ -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 ...),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment