(lambda ()
(assert-eqv (atan 0) 0)))
+(define (rsqrt x)
+ (/ 1 (sqrt x)))
+
(define-enumerated-test 'atan
(vector
+ (vector (- 2 (sqrt 3)) (/ 3.1415926535897932 12))
+ (vector (- (sqrt 2) 1) (/ 3.1415926535897932 8))
+ (vector (rsqrt 3) (/ 3.1415926535897932 6))
+ (vector 1 (/ 3.1415926535897932 4))
+ (vector (sqrt 3) (/ 3.1415926535897932 3))
+ (vector (+ (sqrt 2) 1) (* 3.1415926535897932 3/8))
+ (vector (+ 2 (sqrt 3)) (* 3.1415926535897932 5/12))
(vector +2i +1.5707963267948966+.5493061443340549i)
(vector +0.+2i +1.5707963267948966+.5493061443340549i)
(vector -0.+2i -1.5707963267948966+.5493061443340549i)