all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jay Belanger <jay.p.belanger@gmail.com>
To: Markus Triska <markus.triska@gmx.at>
Cc: emacs-pretest-bug@gnu.org, jay.p.belanger@gmail.com
Subject: Re: 22.1.50; calc-math.el patch: fix non-termination
Date: Wed, 26 Sep 2007 19:06:19 -0500	[thread overview]
Message-ID: <m33ax1dlac.fsf@gmail.com> (raw)
In-Reply-To: <m1fy115n3d.fsf@pnsgw3-client154.demo.tuwien.ac.at> (Markus Triska's message of "Wed\, 26 Sep 2007 19\:54\:30 +0200")


Markus Triska <markus.triska@gmx.at> 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

  reply	other threads:[~2007-09-27  0:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 17:54 22.1.50; calc-math.el patch: fix non-termination Markus Triska
2007-09-27  0:06 ` Jay Belanger [this message]
2007-09-27 18:00   ` Richard Stallman
2007-09-27 18:42   ` Markus Triska

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m33ax1dlac.fsf@gmail.com \
    --to=jay.p.belanger@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=markus.triska@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.