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