aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2007-06-22 06:12:35 +0000
committerJay Belanger2007-06-22 06:12:35 +0000
commit4603f755b424a4f6f484712949fdc80ff38cf035 (patch)
treec9c0604be5c2408f765b6764b6f70c0ff75173f4
parentf83b9601efcc329acc9267962023b2ad9f90919a (diff)
downloademacs-4603f755b424a4f6f484712949fdc80ff38cf035.tar.gz
emacs-4603f755b424a4f6f484712949fdc80ff38cf035.zip
(math-approx-ln-10, math-approx-ln-2): New variables to use in caches.
-rw-r--r--lisp/calc/calc-math.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/calc/calc-math.el b/lisp/calc/calc-math.el
index b6481d30b73..610ed304106 100644
--- a/lisp/calc/calc-math.el
+++ b/lisp/calc/calc-math.el
@@ -1717,10 +1717,18 @@
1717 sum 1717 sum
1718 (math-lnp1-series nextsum (1+ n) nextx x)))) 1718 (math-lnp1-series nextsum (1+ n) nextx x))))
1719 1719
1720(math-defcache math-ln-10 (float (bigpos 018 684 045 994 092 585 302 2) -21) 1720(defconst math-approx-ln-10
1721 (eval-when-compile
1722 (math-read-number-simple "2.302585092994045684018")))
1723
1724(math-defcache math-ln-10 math-approx-ln-10
1721 (math-ln-raw-2 '(float 1 1))) 1725 (math-ln-raw-2 '(float 1 1)))
1722 1726
1723(math-defcache math-ln-2 (float (bigpos 417 309 945 559 180 147 693) -21) 1727(defconst math-approx-ln-2
1728 (eval-when-compile
1729 (math-read-number-simple "0.693147180559945309417")))
1730
1731(math-defcache math-ln-2 math-approx-ln-2
1724 (math-ln-raw-3 (math-float '(frac 1 3)))) 1732 (math-ln-raw-3 (math-float '(frac 1 3))))
1725 1733
1726 1734