File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
typed-racket-lib/typed-racket/base-env Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change 664
664
(define abs-cases ; used both for abs and magnitude
665
665
(list
666
666
;; abs is not the identity on negative zeros.
667
- ((Un -Zero -PosReal) . -> . (Un -Zero -PosReal) : -true-propset : (-arg-path 0 ))
668
- ;; but we know that we at least get *some* zero, and that it preserves exactness
669
- (map unop (list -FlonumZero -SingleFlonumZero -RealZero))
670
- ;; abs may not be closed on fixnums. (abs min-fixnum) is not a fixnum
671
- ((Un -PosInt -NegInt) . -> . -PosInt)
672
- (-Int . -> . -Nat)
673
- ((Un -PosRat -NegRat) . -> . -PosRat)
674
- (-Rat . -> . -NonNegRat)
675
- ((Un -PosFlonum -NegFlonum) . -> . -PosFlonum)
676
- (-Flonum . -> . -NonNegFlonum)
677
- ((Un -PosSingleFlonum -NegSingleFlonum) . -> . -PosSingleFlonum)
678
- (-SingleFlonum . -> . -NonNegSingleFlonum)
679
- ((Un -PosInexactReal -NegInexactReal) . -> . -PosInexactReal)
680
- (-InexactReal . -> . -NonNegInexactReal)
681
- ((Un -PosReal -NegReal) . -> . -PosReal)
682
- (-Real . -> . -NonNegReal)))
667
+ (-> (Un -Zero -PosReal) (Un -Zero -PosReal) : -true-propset : (-arg-path 0 ))
668
+ (map unop (list -RealZero -Int -Rat -Flonum -SingleFlonum))
669
+ (-> (Un -PosReal -NegReal) -PosReal)
670
+ (-> -Real -NonNegReal)))
683
671
684
672
;Check to ensure we fail fast if the flonum bindings change
685
673
(define-namespace-anchor anchor)
You can’t perform that action at this time.
0 commit comments