GNU bug report logs -
#73817
29.4; Docstring for math-approx-sqrt-e is wrong
Previous Next
Reported by: Ulrich Mueller <ulm <at> gentoo.org>
Date: Tue, 15 Oct 2024 12:18:01 UTC
Severity: minor
Found in version 29.4
Fixed in version 30.1
Done: Ulrich Mueller <ulm <at> gentoo.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
math-approx-sqrt-e is a variable defined in ‘calc-ext.el’.
Its value is (float 1648721270700128146849 -21)
An approximation for sqrt(3).
This variable may be risky if used as a file-local variable.
Obviously this should be sqrt(e) = 1.648..., whereas sqrt(3) = 1.732...
OK to push attached patch to the emacs-30 branch, or should it go to
master?
[0001-lisp-calc-calc-ext.el-math-approx-sqrt-e-Doc-fix.patch (text/plain, inline)]
From ec01569490f2df9999925d4471e627a6370606eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm <at> gentoo.org>
Date: Tue, 15 Oct 2024 14:06:49 +0200
Subject: [PATCH] * lisp/calc/calc-ext.el (math-approx-sqrt-e): Doc fix.
---
lisp/calc/calc-ext.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index 191149892a8..25d2492b277 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -2069,7 +2069,7 @@ math-sqrt-two-pi
(defconst math-approx-sqrt-e
(math-read-number-simple "1.648721270700128146849")
- "An approximation for sqrt(3).")
+ "An approximation for sqrt(e).")
(math-defcache math-sqrt-e math-approx-sqrt-e
(math-add-float '(float 1 0) (math-exp-minus-1-raw '(float 5 -1))))
--
2.47.0
This bug report was last modified 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.