]> git.eshelyaron.com Git - emacs.git/commitdiff
(math-largest-emacs-expt): Remove unnecessary condition check.
authorJay Belanger <jay.p.belanger@gmail.com>
Mon, 1 Oct 2007 18:16:03 +0000 (18:16 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Mon, 1 Oct 2007 18:16:03 +0000 (18:16 +0000)
lisp/calc/calc-math.el

index 1aab53524f880e9de80ad19027d2bf2eb84aa6bd..3a2319e9a2cd8271e173babcf2016c8dd4f98540 100644 (file)
         (pow 1e2))
     ;; The following loop is for efficiency; it should stop when 
     ;; 10^(2x) is too large.  This could be indicated by a range 
-    ;; error when computing 10^(2x), an infinite value for 10^(2x), 
-    ;; or (!) a zero value for 10^(2x).
+    ;; error when computing 10^(2x) or an infinite value for 10^(2x).
     (while (and
             pow
-            (< pow 1.0e+INF)
-            (> pow 0.0))
+            (< pow 1.0e+INF))
       (setq x (* 2 x))
       (setq pow (condition-case nil
                     (expt 10.0 (* 2 x))
@@ -73,8 +71,7 @@
                   (error nil)))
     (while (and
             pow
-            (< pow 1.0e+INF)
-            (> pow 0.0))
+            (< pow 1.0e+INF))
       (setq x (1+ x))
       (setq pow (condition-case nil
                     (expt 10.0 (1+ x))