+2006-05-01 Joe Neeman <joeneeman@gmail.com>
+
+ * scm/lily-library.scm: Fix guile 1.6 compatibility in inf? and nan?
+
2006-05-01 Han-Wen Nienhuys <hanwen@lilypond.org>
* scripts/abc2ly.py (dump_score): indent of 4 for python code.
;; numbers
(if (not (defined? 'nan?)) ;; guile 1.6 compat
- (define-public (nan? x) #f))
+ (define-public (nan? x) (not (or (< 0.0 x)
+ (> 0.0 x)
+ (= 0.0 x)))))
(if (not (defined? 'inf?))
- (define-public (inf? x) #f))
+ (define-public (inf? x) (= (/ 1.0 x) 0.0)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; intervals