From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sqrt with negative arg. Date: 01 Jan 2004 08:24:13 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200312312136.hBVLaVd00009@raven.dms.auburn.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1072938309 31185 80.91.224.253 (1 Jan 2004 06:25:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jan 2004 06:25:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jan 01 07:25:06 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AbwGY-0004Uw-00 for ; Thu, 01 Jan 2004 07:25:06 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AbwGY-0007lN-00 for ; Thu, 01 Jan 2004 07:25:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AbxC4-0006GC-9l for emacs-devel@quimby.gnus.org; Thu, 01 Jan 2004 02:24:32 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AbxBy-0006FW-7A for emacs-devel@gnu.org; Thu, 01 Jan 2004 02:24:26 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AbxBS-000691-Kp for emacs-devel@gnu.org; Thu, 01 Jan 2004 02:24:25 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AbxBS-00066C-1w; Thu, 01 Jan 2004 02:23:54 -0500 Original-To: Luc Teirlinck In-reply-to: <200312312136.hBVLaVd00009@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 31 Dec 2003 15:36:31 -0600 (CST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18939 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18939 > Date: Wed, 31 Dec 2003 15:36:31 -0600 (CST) > From: Luc Teirlinck > > 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.)