summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-alg.el
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2008-11-03 02:16:35 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2008-11-03 02:16:35 +0000
commitdf802986e53b1157455a7c754056d1e4a4e23845 (patch)
tree90ab6caeba5d4bff59680a87466f20f2dc9e708c /lisp/calc/calc-alg.el
parenta336ee5bc032c489e7de491f4eeddb8ea28ed6a9 (diff)
downloademacs-df802986e53b1157455a7c754056d1e4a4e23845.tar.gz
emacs-df802986e53b1157455a7c754056d1e4a4e23845.tar.bz2
emacs-df802986e53b1157455a7c754056d1e4a4e23845.zip
(calcFunc-collect): Return constant polynomial when appropriate.
Diffstat (limited to 'lisp/calc/calc-alg.el')
-rw-r--r--lisp/calc/calc-alg.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calc/calc-alg.el b/lisp/calc/calc-alg.el
index 20730b91dca..34d2829f2c3 100644
--- a/lisp/calc/calc-alg.el
+++ b/lisp/calc/calc-alg.el
@@ -1600,7 +1600,7 @@
(if (cdr p)
(math-normalize ; fix selection bug
(math-build-polynomial-expr p base))
- expr)))
+ (car p))))
;;; If expr is of the form "a + bx + cx^2 + ...", return the list (a b c ...),
;;; else return nil if not in polynomial form. If "loose" (math-is-poly-loose),