doc correction and test additions for `atan'

Closes PR 10324
This commit is contained in:
Matthew Flatt 2013-03-01 15:28:39 -07:00
parent 5ab12b36cf
commit 0acb9b8432
2 changed files with 6 additions and 2 deletions

View File

@ -69,8 +69,8 @@ and @racketvalfont{-nan.f} is the same as @racket[+nan.f].
Calculations with infinites produce results consistent with IEEE Calculations with infinites produce results consistent with IEEE
double- or single-precision floating point where IEEE specifies the result; in double- or single-precision floating point where IEEE specifies the result; in
cases where IEEE provides no specification, such as @racket[(angle cases where IEEE provides no specification,
+inf.0+inf.0i)], the result corresponds to the limit approaching the result corresponds to the limit approaching
infinity, or @racket[+nan.0] or @racket[+nan.f] if no such limit exists. infinity, or @racket[+nan.0] or @racket[+nan.f] if no such limit exists.
A @deftech{fixnum} is an exact integer whose two's complement A @deftech{fixnum} is an exact integer whose two's complement

View File

@ -2110,6 +2110,10 @@
(test 7/9 rationalize (inexact->exact (atan +inf.0 +inf.0)) 1/100) (test 7/9 rationalize (inexact->exact (atan +inf.0 +inf.0)) 1/100)
(test 26/11 rationalize (inexact->exact (atan +inf.0 -inf.0)) 1/100) (test 26/11 rationalize (inexact->exact (atan +inf.0 -inf.0)) 1/100)
(test -7/9 rationalize (inexact->exact (atan -inf.0 +inf.0)) 1/100) (test -7/9 rationalize (inexact->exact (atan -inf.0 +inf.0)) 1/100)
(test 7/9 rationalize (inexact->exact (angle +inf.0+inf.0i)) 1/100)
(test 26/11 rationalize (inexact->exact (angle -inf.0+inf.0i)) 1/100)
(test -7/9 rationalize (inexact->exact (angle +inf.0-inf.0i)) 1/100)
(test -26/11 rationalize (inexact->exact (angle -inf.0-inf.0i)) 1/100)
(test-nan.0 atan +nan.0) (test-nan.0 atan +nan.0)
(test-nan.0 atan 1 +nan.0) (test-nan.0 atan 1 +nan.0)