Refine type for angle
original commit: 4ca07b3ac8cf1a9839de8330c2324fff4b0344fc
This commit is contained in:
parent
db4175182f
commit
8b6c27cf1d
|
@ -1649,7 +1649,7 @@
|
|||
[angle (cl->* (-PosReal . -> . -Zero)
|
||||
(-FloatComplex . -> . -Flonum)
|
||||
(-InexactComplex . -> . -InexactReal)
|
||||
(N . -> . -Real))]
|
||||
(N . -> . (Un -InexactReal -Zero)))]
|
||||
[numerator
|
||||
(from-cases (map unop all-int-types)
|
||||
(-PosRat . -> . -PosInt)
|
||||
|
|
|
@ -288,7 +288,7 @@
|
|||
(tc-e (flexpt -2.0 -0.5) -Flonum) ; NaN
|
||||
(tc-e (tanh (ann 0 Nonnegative-Integer)) -NonNegReal)
|
||||
(tc-e (sinh (ann 0 Nonpositive-Integer)) -NonPosReal)
|
||||
(tc-e (angle -1) -Real)
|
||||
(tc-e (angle -1) (t:Un -InexactReal -Zero))
|
||||
(tc-e (angle 2.3) -Zero)
|
||||
(tc-e (magnitude 3/4) -PosRat)
|
||||
(tc-e (magnitude 3+2i) -NonNegReal)
|
||||
|
|
Loading…
Reference in New Issue
Block a user