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: Fri, 02 Jan 2004 11:27:34 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8011-Fri02Jan2004112733+0200-eliz@elta.co.il> References: <200312312136.hBVLaVd00009@raven.dms.auburn.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1073036121 14474 80.91.224.253 (2 Jan 2004 09:35:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2004 09:35:21 +0000 (UTC) Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jan 02 10:35:12 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 1AcLi4-0000PV-00 for ; Fri, 02 Jan 2004 10:35:12 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AcLi3-0007pI-00 for ; Fri, 02 Jan 2004 10:35:11 +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 1AcMfB-0008Mw-3h for emacs-devel@quimby.gnus.org; Fri, 02 Jan 2004 05:36:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AcMdW-0007Ix-JR for emacs-devel@gnu.org; Fri, 02 Jan 2004 05:34:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AcMcC-0006NP-Q3 for emacs-devel@gnu.org; Fri, 02 Jan 2004 05:34:00 -0500 Original-Received: from [192.114.186.23] (helo=aragorn.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcMam-0005fl-F3 for emacs-devel@gnu.org; Fri, 02 Jan 2004 05:31:44 -0500 Original-Received: from zaretski ([80.230.152.174]) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id CEE47575; Fri, 2 Jan 2004 11:30:04 +0200 (IST) Original-To: Andreas Schwab X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Andreas Schwab on Thu, 01 Jan 2004 18:22:22 +0100) 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:18954 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18954 > From: Andreas Schwab > Date: Thu, 01 Jan 2004 18:22:22 +0100 > > 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. Actually, Emacs will do fine even if the math function only sets errno when such problems happen. If matherr is available, it will be used, but it isn't necessary. The macros on floatfns.c tell the details.