aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2006-01-21 04:31:11 +0000
committerJay Belanger2006-01-21 04:31:11 +0000
commita6c72dc393be9cf3629bf62c3b65f737533b5010 (patch)
tree9270456164732778f7c898d6aba03184abbcbcfe
parentd1deeedac74d39d90a65a74c03fbb7aab05e1c6b (diff)
downloademacs-a6c72dc393be9cf3629bf62c3b65f737533b5010.tar.gz
emacs-a6c72dc393be9cf3629bf62c3b65f737533b5010.zip
(calc-sum-rec): Fix the case where the lower limit is 0.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calc/calcalg2.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b56b402a6af..d84868c746c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-01-20 Jay Belanger <belanger@truman.edu>
2
3 * calc/calcalg2.el (calc-sum-rec): Fix the sum when the lower
4 limit is 0.
5
12006-01-20 Carsten Dominik <dominik@science.uva.nl> 62006-01-20 Carsten Dominik <dominik@science.uva.nl>
2 7
3 * textmodes/org.el: (org-open-at-point): Fixed bug with matching a 8 * textmodes/org.el: (org-open-at-point): Fixed bug with matching a
diff --git a/lisp/calc/calcalg2.el b/lisp/calc/calcalg2.el
index c0fa5310bf4..849ec42c5f6 100644
--- a/lisp/calc/calcalg2.el
+++ b/lisp/calc/calcalg2.el
@@ -2012,7 +2012,7 @@
2012 n (1+ n) 2012 n (1+ n)
2013 t1 (cdr t1))) 2013 t1 (cdr t1)))
2014 (setq n (math-build-polynomial-expr poly high)) 2014 (setq n (math-build-polynomial-expr poly high))
2015 (if (memq low '(0 1)) 2015 (if (= low 1)
2016 n 2016 n
2017 (math-sub n (math-build-polynomial-expr poly 2017 (math-sub n (math-build-polynomial-expr poly
2018 (math-sub low 1)))))) 2018 (math-sub low 1))))))