Add random testing for complexes.
Fix a bug it found. original commit: 990fa87a2eba6b531557c623a4b5c5b4a893313b
This commit is contained in:
parent
4da3453cf5
commit
e1a6cc3618
|
@ -175,6 +175,8 @@
|
|||
(sin E*)
|
||||
(tan E*)
|
||||
(sqr E*)
|
||||
(make-rectangular E* E*)
|
||||
(make-polar E* E*)
|
||||
])
|
||||
;; generated from: (map car (file->list "base-env-parts"))
|
||||
|
||||
|
|
|
@ -1610,8 +1610,9 @@
|
|||
[round (round-type)]
|
||||
|
||||
[make-rectangular (cl->* (-Rat -Rat . -> . -ExactNumber)
|
||||
(-Flonum -Real . -> . -FloatComplex)
|
||||
(-Real -Flonum . -> . -FloatComplex)
|
||||
(-Flonum -Flonum . -> . -FloatComplex)
|
||||
(-Flonum (Un -PosReal -NegReal) . -> . -FloatComplex) ; no exact 0
|
||||
((Un -PosReal -NegReal) -Flonum . -> . -FloatComplex)
|
||||
(-SingleFlonum -SingleFlonum . -> . -SingleFlonumComplex)
|
||||
(-InexactReal -InexactReal . -> . -InexactComplex)
|
||||
(-Real -Real . -> . N))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user