# HG changeset patch # User Jay Belanger # Date 1191262563 0 # Node ID 155b89cb60fba4ed9dd39b4a508b759452b421aa # Parent de9abb25771b4d13224cf357be735c55c9230d1b (math-largest-emacs-expt): Remove unnecessary condition check. diff -r de9abb25771b -r 155b89cb60fb lisp/calc/calc-math.el --- a/lisp/calc/calc-math.el Mon Oct 01 17:23:39 2007 +0000 +++ b/lisp/calc/calc-math.el Mon Oct 01 18:16:03 2007 +0000 @@ -57,12 +57,10 @@ (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))