Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f3d95494
Commit
f3d95494
authored
Dec 29, 2003
by
Richard M. Stallman
Browse files
(Math Functions): asin, acos, log, log10 report domain-error errors.
parent
1ee89891
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
lispref/numbers.texi
lispref/numbers.texi
+9
-8
No files found.
lispref/numbers.texi
View file @
f3d95494
...
@@ -1047,8 +1047,8 @@ pi/2
...
@@ -1047,8 +1047,8 @@ pi/2
@tex
@tex
@math{\pi/2}
@math{\pi/2}
@end tex
@end tex
(inclusive) whose sine is @var{arg}; if, however, @var{arg}
(inclusive) whose sine is @var{arg}; if, however, @var{arg}
is out of
is out of
range (outside [-1, 1]),
then the result is a NaN
.
range (outside [-1, 1]),
it signals a @code{domain-error} error
.
@end defun
@end defun
@defun acos arg
@defun acos arg
...
@@ -1059,8 +1059,8 @@ pi
...
@@ -1059,8 +1059,8 @@ pi
@tex
@tex
@math{\pi}
@math{\pi}
@end tex
@end tex
(inclusive) whose cosine is @var{arg}; if, however, @var{arg}
(inclusive) whose cosine is @var{arg}; if, however, @var{arg}
is out
is out
of range (outside [-1, 1]),
then the result is a NaN
.
of range (outside [-1, 1]),
it signals a @code{domain-error} error
.
@end defun
@end defun
@defun atan y &optional x
@defun atan y &optional x
...
@@ -1112,8 +1112,8 @@ If you don't specify @var{base}, the base
...
@@ -1112,8 +1112,8 @@ If you don't specify @var{base}, the base
@ifnottex
@ifnottex
@i{e}
@i{e}
@end ifnottex
@end ifnottex
is used. If @var{arg}
is used. If @var{arg}
is negative, it signals a @code{domain-error}
is negative, the result is a NaN
.
error
.
@end defun
@end defun
@ignore
@ignore
...
@@ -1132,8 +1132,9 @@ lose accuracy.
...
@@ -1132,8 +1132,9 @@ lose accuracy.
@defun log10 arg
@defun log10 arg
This function returns the logarithm of @var{arg}, with base 10. If
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})}
@var{arg} is negative, it signals a @code{domain-error} error.
@equiv{} @code{(log @var{x} 10)}, at least approximately.
@code{(log10 @var{x})} @equiv{} @code{(log @var{x} 10)}, at least
approximately.
@end defun
@end defun
@defun expt x y
@defun expt x y
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment