emacs-devel
[Top][All Lists]
Advanced

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

sqrt with negative arg.


From: Luc Teirlinck
Subject: sqrt with negative arg.
Date: Wed, 31 Dec 2003 15:36:31 -0600 (CST)

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.  What about
the following, which I could install if we agree on it:

===File ~/numbers-d31-diff==================================
*** numbers.texi.~1.32.~        Wed Dec 31 08:53:21 2003
--- numbers.texi        Wed Dec 31 15:20:59 2003
***************
*** 1146,1152 ****
  
  @defun sqrt arg
  This returns the square root of @var{arg}.  If @var{arg} is negative,
! it signals a @code{domain-error} error.
  @end defun
  
  @node Random Numbers
--- 1146,1153 ----
  
  @defun sqrt arg
  This returns the square root of @var{arg}.  If @var{arg} is negative,
! @code{sqrt} could return a NaN or signal a @code{domain-error} error,
! depending on the implementation.
  @end defun
  
  @node Random Numbers
============================================================




reply via email to

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