# HG changeset patch # User Jay Belanger # Date 1182492755 0 # Node ID 95971e0a7e98c9abc967374388cf667fb3042938 # Parent 334bfc4cc092c8557ff01f93ac6fdcf8b6be52c7 (math-approx-ln-10, math-approx-ln-2): New variables to use in caches. diff -r 334bfc4cc092 -r 95971e0a7e98 lisp/calc/calc-math.el --- a/lisp/calc/calc-math.el Fri Jun 22 06:10:39 2007 +0000 +++ b/lisp/calc/calc-math.el Fri Jun 22 06:12:35 2007 +0000 @@ -1717,10 +1717,18 @@ sum (math-lnp1-series nextsum (1+ n) nextx x)))) -(math-defcache math-ln-10 (float (bigpos 018 684 045 994 092 585 302 2) -21) +(defconst math-approx-ln-10 + (eval-when-compile + (math-read-number-simple "2.302585092994045684018"))) + +(math-defcache math-ln-10 math-approx-ln-10 (math-ln-raw-2 '(float 1 1))) -(math-defcache math-ln-2 (float (bigpos 417 309 945 559 180 147 693) -21) +(defconst math-approx-ln-2 + (eval-when-compile + (math-read-number-simple "0.693147180559945309417"))) + +(math-defcache math-ln-2 math-approx-ln-2 (math-ln-raw-3 (math-float '(frac 1 3))))