1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 12:20:26 +02:00
guile/module
Mark H Weaver 7112615f73 Implement finite?' in core and fix R6RS finite?' and `infinite?'
* libguile/numbers.c (scm_finite_p): Add new predicate `finite?' from
  R6RS to guile core, which returns #t if and only if its argument is
  neither infinite nor a NaN.  Note that this is not the same as (not
  (inf? x)) or (not (infinite? x)), since NaNs are neither finite nor
  infinite.

* test-suite/tests/numbers.test: Add test cases for `finite?'.

* module/rnrs/base.scm: Import `inf?' as `infinite?' instead of
  reimplementing it.  Previously, the R6RS implementation of
  `infinite?' did not detect non-real complex infinities, nor did it
  throw exceptions for non-numbers.  (Note that NaNs _are_ considered
  numbers by scheme, despite their name).

  Import `finite?' instead of reimplementing it.  Previously, the R6RS
  implementation of `finite?' returned #t for both NaNs and non-real
  complex infinities, in violation of R6RS.

* NEWS: Add NEWS entries, and reorganize existing numerics-related
  entries together under one subheading.

* doc/ref/api-data.texi (Real and Rational Numbers): Add docs for
  `finite?' and scm_finite_p.
2011-01-28 12:21:14 +01:00
..
ice-9 Do not apply inf?' or nan?' to strings 2011-01-28 12:16:59 +01:00
language Parse Decimal Numbers 2011-01-26 23:47:29 +01:00
oop Remove goops-version, which is no longer defined 2010-10-02 18:14:45 +01:00
rnrs Implement finite?' in core and fix R6RS finite?' and `infinite?' 2011-01-28 12:21:14 +01:00
scripts Have "frisk" recognize #:use-module' and #:autoload'. 2010-10-27 23:31:49 +02:00
srfi Get rid of `define-macro' in the SRFI 26 implementation 2010-12-07 23:13:55 +01:00
sxml sxml->xml fix 2010-12-02 22:24:26 +01:00
system more sensible error if compiled-file-name returns false in compile-file 2011-01-26 22:09:06 +01:00
texinfo stexi->shtml supports itemx 2011-01-25 17:59:45 +01:00
web request and response cleanups 2011-01-10 22:44:41 -08:00
Makefile.am store macro definitions in the function slot 2010-12-07 13:21:02 +01:00
rnrs.scm implement port-eof? 2011-01-21 08:27:08 +01:00
statprof.scm remove a number of debug options 2010-09-24 20:57:01 +02:00
texinfo.scm Remove unused top-level variables. 2010-01-11 01:21:14 +01:00