# HG changeset patch # User Richard M. Stallman # Date 1072733530 0 # Node ID 7dd1ab1ebb2c71e51bfef3123428bfec0a3d2ba7 # Parent 3addbe38d8a6d3e0947a9c311910bd883641d3b4 (Math Functions): asin, acos, log, log10 report domain-error errors. diff -r 3addbe38d8a6 -r 7dd1ab1ebb2c lispref/numbers.texi --- a/lispref/numbers.texi Mon Dec 29 21:29:15 2003 +0000 +++ b/lispref/numbers.texi Mon Dec 29 21:32:10 2003 +0000 @@ -1047,8 +1047,8 @@ @tex @math{\pi/2} @end tex -(inclusive) whose sine is @var{arg}; if, however, @var{arg} -is out of range (outside [-1, 1]), then the result is a NaN. +(inclusive) whose sine is @var{arg}; if, however, @var{arg} is out of +range (outside [-1, 1]), it signals a @code{domain-error} error. @end defun @defun acos arg @@ -1059,8 +1059,8 @@ @tex @math{\pi} @end tex -(inclusive) whose cosine is @var{arg}; if, however, @var{arg} -is out of range (outside [-1, 1]), then the result is a NaN. +(inclusive) whose cosine is @var{arg}; if, however, @var{arg} is out +of range (outside [-1, 1]), it signals a @code{domain-error} error. @end defun @defun atan y &optional x @@ -1112,8 +1112,8 @@ @ifnottex @i{e} @end ifnottex -is used. If @var{arg} -is negative, the result is a NaN. +is used. If @var{arg} is negative, it signals a @code{domain-error} +error. @end defun @ignore @@ -1132,8 +1132,9 @@ @defun log10 arg This function returns the logarithm of @var{arg}, with base 10. If -@var{arg} is negative, the result is a NaN. @code{(log10 @var{x})} -@equiv{} @code{(log @var{x} 10)}, at least approximately. +@var{arg} is negative, it signals a @code{domain-error} error. +@code{(log10 @var{x})} @equiv{} @code{(log @var{x} 10)}, at least +approximately. @end defun @defun expt x y