This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home. For a version of this page that may be more recent, see InexactEqvWeaver in WG2's repo for R7RS-large.

Inexact­Eqv­Weaver

cowan
2012-11-25 10:03:00
1history
source

Proposed R7RS definition for eqv? on numbers

[See #477 for detailed background and rationale]

Objects obj1 and obj2 are substantially different if and only if one of the following holds:

Inexact numbers z1 and z2 are operationally equivalent if and only if for all procedures f that can be defined as a finite composition of the standard numerical operations specified in section 6.2.6, (f z1) and (f z2) either both raise exceptions or yield results that are not substantially different.

The eqv? procedure returns #t if one of the following holds:

[...]

The eqv? procedure returns #f if one of the following holds:

[...]