emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sqrt with negative arg.


From: Andreas Schwab
Subject: Re: sqrt with negative arg.
Date: Thu, 01 Jan 2004 18:22:22 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Luc Teirlinck <address@hidden> 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.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]