[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(elisp)Numbers
From: |
Luc Teirlinck |
Subject: |
(elisp)Numbers |
Date: |
Mon, 20 Oct 2003 21:29:16 -0500 (CDT) |
I read (elisp)Numbers and apart from a small correction to
(elisp)Integer Basics (in the overflow example), which I already
committed, I only have two questions:
1. In (elisp)Numeric Conversions, is it worth pointing out that not
only `floor', but also `truncate', `ceiling' and `round' take an
optional DIVISOR argument? (elisp)Numeric Conversions makes it
look like only `floor' does.
2. In (elisp)Math Functions, it is said that asin, acos, log, log10
and sqrt all return NaN values for out-of-range arguments, but, on
my machine, only `sqrt' does. The others throw an error, see the
IELM run below. Is this machine dependent?
ELISP> (asin 3)
*** Eval error *** Arithmetic domain error: "asin", 3
ELISP> (acos 3)
*** Eval error *** Arithmetic domain error: "acos", 3
ELISP> (log -3)
*** Eval error *** Arithmetic domain error: "log", -3
ELISP> (log10 -3)
*** Eval error *** Arithmetic domain error: "log10", -3
ELISP> (sqrt -3)
-0.0e+NaN
ELISP> (emacs-version)
"GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit)\n of 2003-10-20 on
swt40.swt.com"
ELISP>
Sincerely,
Luc.
- (elisp)Numbers, Luc Teirlinck, 2003/10/04
- (elisp)Numbers,
Luc Teirlinck <=
- Re: (elisp)Numbers, Richard Stallman, 2003/10/22
- Re: (elisp)Numbers, Andreas Schwab, 2003/10/22
- Re: (elisp)Numbers, Eli Zaretskii, 2003/10/22
- Re: (elisp)Numbers, Richard Stallman, 2003/10/23
- Re: (elisp)Numbers, Andreas Schwab, 2003/10/24
- Re: (elisp)Numbers, Eli Zaretskii, 2003/10/24
- Re: (elisp)Numbers, Eli Zaretskii, 2003/10/24