From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: (elisp)Numbers Date: Mon, 20 Oct 2003 21:29:16 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200310210229.h9L2TGl12085@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066703899 26729 80.91.224.253 (21 Oct 2003 02:38:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2003 02:38:19 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 21 04:38:17 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABmPZ-000796-00 for ; Tue, 21 Oct 2003 04:38:17 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABmPZ-00065v-00 for ; Tue, 21 Oct 2003 04:38:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABmMF-0003RF-WE for emacs-devel@quimby.gnus.org; Mon, 20 Oct 2003 22:34:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABmLx-0003RA-KB for emacs-devel@gnu.org; Mon, 20 Oct 2003 22:34:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABmLR-00037s-Po for emacs-devel@gnu.org; Mon, 20 Oct 2003 22:34:32 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABmLR-0002tT-5V for emacs-devel@gnu.org; Mon, 20 Oct 2003 22:34:01 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id h9L2XpKk012468 for ; Mon, 20 Oct 2003 21:33:51 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h9L2TGl12085; Mon, 20 Oct 2003 21:29:16 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17279 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17279 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.