Modified the numeric base type environment.
This commit is contained in:
parent
04e618388c
commit
2fd1e3ac9f
|
@ -78,16 +78,38 @@
|
||||||
[> real-comp]
|
[> real-comp]
|
||||||
|
|
||||||
|
|
||||||
[* (apply cl->* (for/list ([t all-num-types]) (->* (list) t t)))]
|
[* (apply cl->*
|
||||||
[+ (apply cl->* (for/list ([t all-num-types]) (->* (list) t t)))]
|
(append (for/list ([t (list -Pos -Nat -Integer -ExactRational -Flonum)]) (->* (list) t t))
|
||||||
|
(list (->* (list (Un -Integer -ExactRational -Real -Flonum))
|
||||||
|
(Un -Integer -ExactRational -Real -Flonum)
|
||||||
|
-Flonum))
|
||||||
|
(list (->* (list) -Real -Real))
|
||||||
|
(list (->* (list) N N))))]
|
||||||
|
[+ (apply cl->*
|
||||||
|
(append (for/list ([t (list -Pos -Nat -Integer -ExactRational -Flonum)]) (->* (list) t t))
|
||||||
|
(list (->* (list (Un -Integer -ExactRational -Real -Flonum))
|
||||||
|
(Un -Integer -ExactRational -Real -Flonum)
|
||||||
|
-Flonum))
|
||||||
|
(list (->* (list) -Real -Real))
|
||||||
|
(list (->* (list) N N))))]
|
||||||
|
|
||||||
[- (apply cl->*
|
[- (apply cl->*
|
||||||
(for/list ([t (list -Integer -ExactRational -Flonum -Real N)])
|
(append (for/list ([t (list -Integer -ExactRational -Flonum)])
|
||||||
(->* (list t) t t)))]
|
(->* (list t) t t))
|
||||||
[/ (apply cl->*
|
(list (->* (list (Un -Integer -ExactRational -Real -Flonum))
|
||||||
(->* (list -Integer) -Integer -ExactRational)
|
(Un -Integer -ExactRational -Real -Flonum)
|
||||||
(for/list ([t (list -ExactRational -Flonum -Real N)])
|
-Flonum))
|
||||||
(->* (list t) t t)))]
|
(list (->* (list -Real) -Real -Real))
|
||||||
|
(list (->* (list N) N N))))]
|
||||||
|
[/ (apply cl->*
|
||||||
|
(append (list (->* (list -Integer) -Integer -ExactRational))
|
||||||
|
(for/list ([t (list -ExactRational -Flonum)])
|
||||||
|
(->* (list t) t t))
|
||||||
|
(list (->* (list (Un -Integer -ExactRational -Real -Flonum))
|
||||||
|
(Un -Integer -ExactRational -Real -Flonum)
|
||||||
|
-Flonum))
|
||||||
|
(list (->* (list -Real) -Real -Real))
|
||||||
|
(list (->* (list N) N N))))]
|
||||||
|
|
||||||
[max (apply cl->* (->* (list -Pos) -Integer -Pos) (->* (list -Nat) -Integer -Nat) (for/list ([t all-num-types]) (->* (list t) t t)))]
|
[max (apply cl->* (->* (list -Pos) -Integer -Pos) (->* (list -Nat) -Integer -Nat) (for/list ([t all-num-types]) (->* (list t) t t)))]
|
||||||
[min (apply cl->* (for/list ([t all-num-types]) (->* (list t) t t)))]
|
[min (apply cl->* (for/list ([t all-num-types]) (->* (list t) t t)))]
|
||||||
|
@ -137,7 +159,8 @@
|
||||||
[denominator (-Real . -> . -Real)]
|
[denominator (-Real . -> . -Real)]
|
||||||
[rationalize (-Real -Real . -> . N)]
|
[rationalize (-Real -Real . -> . N)]
|
||||||
[expt (cl->* (-Nat -Nat . -> . -Nat)
|
[expt (cl->* (-Nat -Nat . -> . -Nat)
|
||||||
(-Integer -Integer . -> . -Integer)
|
(-Integer -Nat . -> . -Integer)
|
||||||
|
(-Real -Integer . -> . -Real)
|
||||||
(N N . -> . N))]
|
(N N . -> . N))]
|
||||||
[sqrt (cl->*
|
[sqrt (cl->*
|
||||||
(-Nat . -> . -Real)
|
(-Nat . -> . -Real)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user