diff options
| author | Jay Belanger | 2008-11-03 02:16:35 +0000 |
|---|---|---|
| committer | Jay Belanger | 2008-11-03 02:16:35 +0000 |
| commit | df802986e53b1157455a7c754056d1e4a4e23845 (patch) | |
| tree | 90ab6caeba5d4bff59680a87466f20f2dc9e708c | |
| parent | a336ee5bc032c489e7de491f4eeddb8ea28ed6a9 (diff) | |
| download | emacs-df802986e53b1157455a7c754056d1e4a4e23845.tar.gz emacs-df802986e53b1157455a7c754056d1e4a4e23845.zip | |
(calcFunc-collect): Return constant polynomial when appropriate.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calc/calc-alg.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7794e110c76..eadc70785d3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-11-03 Vincent Belaïche <vincent.b.1@hotmail.fr> | ||
| 2 | |||
| 3 | * calc/calc-alg.el (calcFunc-collect): Return constant polynomial | ||
| 4 | when appropriate. | ||
| 5 | |||
| 1 | 2008-11-02 Martin Rudalics <rudalics@gmx.at> | 6 | 2008-11-02 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * window.el (save-selected-window-norecord): New macro | 8 | * window.el (save-selected-window-norecord): New macro |
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 @@ | |||
| 1600 | (if (cdr p) | 1600 | (if (cdr p) |
| 1601 | (math-normalize ; fix selection bug | 1601 | (math-normalize ; fix selection bug |
| 1602 | (math-build-polynomial-expr p base)) | 1602 | (math-build-polynomial-expr p base)) |
| 1603 | expr))) | 1603 | (car p)))) |
| 1604 | 1604 | ||
| 1605 | ;;; If expr is of the form "a + bx + cx^2 + ...", return the list (a b c ...), | 1605 | ;;; If expr is of the form "a + bx + cx^2 + ...", return the list (a b c ...), |
| 1606 | ;;; else return nil if not in polynomial form. If "loose" (math-is-poly-loose), | 1606 | ;;; else return nil if not in polynomial form. If "loose" (math-is-poly-loose), |