From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#73817: 29.4; Docstring for math-approx-sqrt-e is wrong Date: Tue, 15 Oct 2024 14:17:21 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19921"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: 73817@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 15 14:18:10 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t0gV5-00050p-Nk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Oct 2024 14:18:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0gUp-00034C-DX; Tue, 15 Oct 2024 08:17:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0gUj-00033N-0U for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 08:17:45 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0gUi-0001sJ-NS for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 08:17:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=L6LjaesHJIH0IvTROqSUliuwcwOdKOZAM55Tc6hQJRk=; b=tsrRiABH8/FMwnpADlBR/tuUcPS1Ep6usMaOVbzyfxUqgPnlO5VT37ffaLc5fZQ+eUW4hch9X4oIIrryRd4nJ8rijLFnJghdE/mRoP4y5tCwvEEmi9d9uxVk/APHu2u/B8apa27k2vJjBZua4TM8+17iku84WJXJ5gB47VpI4iNQnPTyq2H2H/43C0G116VbxVnR2Sdbv10yfoRNjxkPuZA8kizmIO5A0XOpjI3s4SVtEQEFd1ijB7jcj5ptEEmpXYx1lXLMsJSgWGcP6q+mxKqx/fnhxMbR1VdrCnbn8hKYchQlA2Fk50fpsJ/jv9iTrrugDA1o24887DVMV0NrmQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t0gUz-0007rn-Qz for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 08:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Oct 2024 12:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73817 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172899467430219 (code B ref -1); Tue, 15 Oct 2024 12:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2024 12:17:54 +0000 Original-Received: from localhost ([127.0.0.1]:54373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gUr-0007rL-L1 for submit@debbugs.gnu.org; Tue, 15 Oct 2024 08:17:53 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gUn-0007rC-W7 for submit@debbugs.gnu.org; Tue, 15 Oct 2024 08:17:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0gUU-00031s-Ml for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 08:17:30 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1t0gUS-0001r6-S8 for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 08:17:30 -0400 Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293614 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable math-approx-sqrt-e is a variable defined in =E2=80=98calc-ext.el=E2=80=99. 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) =3D 1.648..., whereas sqrt(3) =3D 1.732... OK to push attached patch to the emacs-30 branch, or should it go to master? --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=0001-lisp-calc-calc-ext.el-math-approx-sqrt-e-Doc-fix.patch >From ec01569490f2df9999925d4471e627a6370606eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= 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 --=-=-=--