mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
10 lines
298 B
Scheme
10 lines
298 B
Scheme
;;> Robert Recorde was a Welsch physician and mathematician, and
|
|
;;> inventor of the "equals" sign (=).
|
|
|
|
(define-library (recorde equal)
|
|
(export =)
|
|
(import (except (scheme base) =))
|
|
(begin
|
|
(define epsilon 0.001)
|
|
(define (= a b)
|
|
(<= (abs (- a b)) (* (abs (max a b)) epsilon)))))
|