polynomial rather than the whole polynomial.
+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
(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 ...),