From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: sqrt with negative arg. Date: Thu, 01 Jan 2004 18:22:22 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200312312136.hBVLaVd00009@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1072996151 29973 80.91.224.253 (1 Jan 2004 22:29:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jan 2004 22:29:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jan 01 23:29: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 1AcBJS-0007U9-00 for ; Thu, 01 Jan 2004 23:29: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 1AcBJS-0000vq-00 for ; Thu, 01 Jan 2004 23:29: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 1AcC0f-0008Jm-0g for emacs-devel@quimby.gnus.org; Thu, 01 Jan 2004 18:13:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AcBsF-0006RN-JI for emacs-devel@gnu.org; Thu, 01 Jan 2004 18:05:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AcAnA-0002qa-SH for emacs-devel@gnu.org; Thu, 01 Jan 2004 16:56:16 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1Ac7Uk-0005Rj-P6 for emacs-devel@gnu.org; Thu, 01 Jan 2004 13:24:30 -0500 Original-Received: from [134.76.166.209] (helo=lisa.goe.net) by mx20.gnu.org with esmtp (Exim 4.24) id 1Ac6Wp-0000RO-SG for emacs-devel@gnu.org; Thu, 01 Jan 2004 12:22:35 -0500 Original-Received: from mutter.goe.net (mutter-lisa0.a11.local [192.168.31.26]) by lisa.goe.net (8.12.10/8.12.10) with ESMTP id i01HMOQq023700; Thu, 1 Jan 2004 18:22:26 +0100 Original-Received: from whitebox.a11.local ([192.168.31.90] helo=whitebox.as.local) by mutter.goe.net with esmtp (Exim 4.22) id 1Ac6Wd-0006IM-Qb; Thu, 01 Jan 2004 18:22:23 +0100 Original-Received: by whitebox.as.local (Postfix, from userid 500) id 3E4B680E14; Thu, 1 Jan 2004 18:22:22 +0100 (CET) Original-To: Luc Teirlinck X-Yow: .. I don't know why but, suddenly, I want to discuss declining I.Q. LEVELS with a blue ribbon SENATE SUB-COMMITTEE! In-Reply-To: <200312312136.hBVLaVd00009@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 31 Dec 2003 15:36:31 -0600 (CST)") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) 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:18946 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18946 Luc Teirlinck writes: > 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. This is a bug either in sqrt or in matherr on your system. ISO C requires that a domain error occurs when sqrt is called with a negative argument, and Emacs depends on matherr (when it is supported) to be called. Apparently, the availability of matherr is not enough to guarantee this. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra=C3=9Fe 5, 90409 N=C3=BCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."