summaryrefslogtreecommitdiff
path: root/lispref/numbers.texi
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-12-31 12:17:17 +0000
committerAndreas Schwab <schwab@suse.de>2003-12-31 12:17:17 +0000
commit903a1a91c62ce450e1b19fb9af9cc0cad82a154f (patch)
tree0d3829e69a53610256b0e9b6ac2c70a9017938b5 /lispref/numbers.texi
parentb2236c89a8669f65ac8419908a4282adfad4470a (diff)
(Math Functions): sqrt reports a domain-error
error. (Float Basics): Use `(/ 0.0 0.0)' instead of `(sqrt -1.0)'.
Diffstat (limited to 'lispref/numbers.texi')
-rw-r--r--lispref/numbers.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/lispref/numbers.texi b/lispref/numbers.texi
index 9c71922c0d..3a4f4ae75c 100644
--- a/lispref/numbers.texi
+++ b/lispref/numbers.texi
@@ -172,7 +172,7 @@ to write negative floating point numbers, as in @samp{-1.0}.
which provides for positive infinity and negative infinity as floating point
values. It also provides for a class of values called NaN or
``not-a-number''; numerical functions return such values in cases where
-there is no correct answer. For example, @code{(sqrt -1.0)} returns a
+there is no correct answer. For example, @code{(/ 0.0 0.0)} returns a
NaN. For practical purposes, there's no significant difference between
different NaN values in Emacs Lisp, and there's no rule for precisely
which NaN value should be used in a particular case, so Emacs Lisp
@@ -1146,7 +1146,7 @@ integer values.
@defun sqrt arg
This returns the square root of @var{arg}. If @var{arg} is negative,
-the value is a NaN.
+it signals a @code{domain-error} error.
@end defun
@node Random Numbers