]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-sum-rec): Fix the case where the lower limit is 0.
authorJay Belanger <jay.p.belanger@gmail.com>
Sat, 21 Jan 2006 04:31:11 +0000 (04:31 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Sat, 21 Jan 2006 04:31:11 +0000 (04:31 +0000)
lisp/ChangeLog
lisp/calc/calcalg2.el

index b56b402a6af87c2bbb589b44a8d70024e810da59..d84868c746cbd2356e2503b930735305c706bff7 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-20  Jay Belanger  <belanger@truman.edu>
+
+       * calc/calcalg2.el (calc-sum-rec): Fix the sum when the lower
+       limit is 0.
+
 2006-01-20  Carsten Dominik  <dominik@science.uva.nl>
 
        * textmodes/org.el: (org-open-at-point): Fixed bug with matching a
index c0fa5310bf49e051525f37c06c270e7fad347673..849ec42c5f6c7fe2281ffb3a4cfbd1833e67f0d7 100644 (file)
                      n (1+ n)
                      t1 (cdr t1)))
              (setq n (math-build-polynomial-expr poly high))
-             (if (memq low '(0 1))
+             (if (= low 1)
                  n
                (math-sub n (math-build-polynomial-expr poly
                                                        (math-sub low 1))))))