Skip to content

Commit 6b9e7a5

Browse files
committed
Even faster mk-big-ival
1 parent 708da91 commit 6b9e7a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mpfr.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
bfnan?
158158
bfinfinite?
159159
bfnegative?
160+
bfrational?
160161
bfeven?
161162
bfodd?
162163
bfcopy

ops/core.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
(define (mk-big-ival x y)
128128
(cond
129129
[(eq? x y)
130-
(define err? (and (bigfloat? x) (or (bfinfinite? x) (bfnan? x))))
130+
(define err? (and (bigfloat? x) (not (bfrational? x))))
131131
(ival (endpoint x #t) (endpoint x #t) err? err?)]
132132
[(and (bigfloat? x) (bigfloat? y))
133133
(define fix? (bf=? x y))

0 commit comments

Comments
 (0)