From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 15 08:17:53 2024 Received: (at submit) by debbugs.gnu.org; 15 Oct 2024 12:17:54 +0000 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 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 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 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 From: Ulrich Mueller To: bug-gnu-emacs@gnu.org Subject: 29.4; Docstring for math-approx-sqrt-e is wrong Date: Tue, 15 Oct 2024 14:17:21 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 15 09:07:50 2024 Received: (at 73817) by debbugs.gnu.org; 15 Oct 2024 13:07:50 +0000 Received: from localhost ([127.0.0.1]:54482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0hHB-0001my-Jq for submit@debbugs.gnu.org; Tue, 15 Oct 2024 09:07:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0hH9-0001mk-Te for 73817@debbugs.gnu.org; Tue, 15 Oct 2024 09:07:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0hGl-0008QE-Py; Tue, 15 Oct 2024 09:07:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=DV5QpAd+6zG7EI58PDhjR7cIKTKg5779OQmxcXEeu9M=; b=bq0tTEbdgm0VlRbssvXL 878ag5GkaQSCL/i1dGj7BeGvE7UPKwg9VQL8gZj3rgdYwJiU/erENERN6DQdn2hOq+aLmwp7lzTZo fu+tEeIjIhaIe9IRhmt1oPKDKKVxWCw9ClwiQzKaXW4hk42dMC5T37pRHthBni78nlGa1qaHrN++H fMUs1+94fAtsxWrYuxf/AQwRp3iBib9ADot21oy1SHIyAS2aIQwAWwkDxDulHU+jpdKjLYyW4K4H0 M9FR6cA00Zy92dchKGFfCHTEXU03jSLFg56TPYsWhabzMtofitAyjGN9YZK8xvDiZQwybQriUI5tw aFXKnTdLqRHrnQ==; Date: Tue, 15 Oct 2024 16:07:20 +0300 Message-Id: <86wmi9qzuf.fsf@gnu.org> From: Eli Zaretskii To: Ulrich Mueller In-Reply-To: (message from Ulrich Mueller on Tue, 15 Oct 2024 14:17:21 +0200) Subject: Re: bug#73817: 29.4; Docstring for math-approx-sqrt-e is wrong References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73817 Cc: mattiase@acm.org, 73817@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: Mattias Engdegård > From: Ulrich Mueller > Date: Tue, 15 Oct 2024 14:17:21 +0200 > > 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? Please install on emacs-30 (documentation changes are always okay on the release branch). Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 15 10:20:07 2024 Received: (at control) by debbugs.gnu.org; 15 Oct 2024 14:20:07 +0000 Received: from localhost ([127.0.0.1]:56015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0iP9-0005fD-23 for submit@debbugs.gnu.org; Tue, 15 Oct 2024 10:20:07 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183]:35086 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0iP6-0005eb-AB for control@debbugs.gnu.org; Tue, 15 Oct 2024 10:20:04 -0400 From: Ulrich Mueller To: control@debbugs.gnu.org Subject: Re: bug#73817: 29.4; Docstring for math-approx-sqrt-e is wrong Date: Tue, 15 Oct 2024 16:19:03 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 73817 30.1 thanks From unknown Sat Aug 16 16:06:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 13 Nov 2024 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator