From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.50; calc-math.el patch: fix non-termination Date: Wed, 26 Sep 2007 19:06:19 -0500 Message-ID: References: Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190851603 32173 80.91.229.12 (27 Sep 2007 00:06:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2007 00:06:43 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, jay.p.belanger@gmail.com To: Markus Triska Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 27 02:06:39 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iagtq-0002lZ-KO for ged-emacs-devel@m.gmane.org; Thu, 27 Sep 2007 02:06:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iagtn-0007mP-Fu for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2007 20:06:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iagtk-0007jK-6A for emacs-devel@gnu.org; Wed, 26 Sep 2007 20:06:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iagti-0007iq-Op for emacs-devel@gnu.org; Wed, 26 Sep 2007 20:06:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iagti-0007ij-Gy for emacs-devel@gnu.org; Wed, 26 Sep 2007 20:06:30 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iagti-0007x2-4k for emacs-devel@gnu.org; Wed, 26 Sep 2007 20:06:30 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iagt0-0000U6-VO for emacs-pretest-bug@gnu.org; Wed, 26 Sep 2007 20:05:47 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Iagte-0007wg-9y for emacs-pretest-bug@gnu.org; Wed, 26 Sep 2007 20:06:29 -0400 Original-Received: from s3.cableone.net ([24.116.0.229]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iagtd-0007wO-Ux for emacs-pretest-bug@gnu.org; Wed, 26 Sep 2007 20:06:26 -0400 Original-Received: from localhost.localdomain (unverified [24.117.100.114]) by S3.cableone.net (CableOne SMTP Service S3) with ESMTP id 124866576 for multiple; Wed, 26 Sep 2007 17:06:21 -0700 In-Reply-To: (Markus Triska's message of "Wed\, 26 Sep 2007 19\:54\:30 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 0, First 23, in=13, out=0, spam=0 X-External-IP: 24.117.100.114 X-Abuse-Info: Send abuse complaints to abuse@cableone.net X-Detected-Kernel: Linux 2.6 (newer, 3) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79949 gmane.emacs.pretest.bugs:20019 Archived-At: Markus Triska writes: > With the OS I'm currently working on, the result of (expt 10.0 x) is > 1.0e+INF for x >= 309, i.e., no range error is triggered. I don't know why I thought `expt' would necessarily give a range error when it's too large; the documentation is silent on this matter. I take it there are three possibilities for large x: expt will give an error, it will give infinity, or it will give 0. > This patch to calc-math.el prevents non-termination when loading the > file. There was talk about adjusting `expt' to give a range error for large x; if that doesn't happen then something like Markus's patch (I'll tweak it to take care of the 0 case, for example) will be needed. Using the 15 line convention, this patch is borderline tiny, but Markus's name appears several times in the lisp Changelogs. Do we have copyright papers for him/you? Jay