all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: sqrt with negative arg.
Date: 01 Jan 2004 08:24:13 +0200	[thread overview]
Message-ID: <upte4425u.fsf@elta.co.il> (raw)
In-Reply-To: <200312312136.hBVLaVd00009@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 31 Dec 2003 15:36:31 -0600 (CST))

> Date: Wed, 31 Dec 2003 15:36:31 -0600 (CST)
> From: Luc Teirlinck <teirllm@dms.auburn.edu>
> 
> A few hours ago, the documentation of sqrt in numbers.texi was
> changed from saying that it returns a NaN to saying that it signals a
> domain-error.  It definitely returns a NaN on my machine.

Really?  What system is that?  Can you debug Fsqrt and see why it
happens?

The way it's supposed to work on most modern systems is that the call
to `sqrt' in the underlying C code causes errno to be set, and Fsqrt
is supposed to check for that and signal an appropriate error.  See
the macro IN_FLOAT defined on floatfns.c.

(The last time a similar problem was reported and discussed here, we
found it was due to a bug in a particular version of glibc that was
fixed in later versions.)

  reply	other threads:[~2004-01-01  6:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-31 21:36 sqrt with negative arg Luc Teirlinck
2004-01-01  6:24 ` Eli Zaretskii [this message]
2004-01-01 16:30 ` Richard Stallman
2004-01-01 16:42   ` Luc Teirlinck
2004-01-01 17:22 ` Andreas Schwab
2004-01-02  9:27   ` Eli Zaretskii

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=upte4425u.fsf@elta.co.il \
    --to=eliz@elta.co.il \
    --cc=emacs-devel@gnu.org \
    /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.