doc correction and test additions for `atan'
Closes PR 10324
This commit is contained in:
parent
5ab12b36cf
commit
0acb9b8432
|
@ -69,8 +69,8 @@ and @racketvalfont{-nan.f} is the same as @racket[+nan.f].
|
|||
|
||||
Calculations with infinites produce results consistent with IEEE
|
||||
double- or single-precision floating point where IEEE specifies the result; in
|
||||
cases where IEEE provides no specification, such as @racket[(angle
|
||||
+inf.0+inf.0i)], the result corresponds to the limit approaching
|
||||
cases where IEEE provides no specification,
|
||||
the result corresponds to the limit approaching
|
||||
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
|
||||
|
|
|
@ -2110,6 +2110,10 @@
|
|||
(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 -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 1 +nan.0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user