emacs-devel
[Top][All Lists]
Advanced

[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.




reply via email to

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