Commit c93f7842 authored by pfdietz's avatar pfdietz

Removed problematic /.7

parent f22e3af1
......@@ -96,12 +96,7 @@
collect (list i c r))
nil)
;;; This test will fail if you compute complex reciprocals
;;; naively. If z = a + bi, the naive approach computes
;;; z^-1 = c + di as c = a/(a^2+b^2), d = -b/(a^2+b^2).
;;; That loses precision, however. Instead, the implementation
;;; should do c = 1/(a+b/a), d = -1/(a/b+b).
#|
(deftest /.7
(loop for bound in (list 1.0s5 1.0f10 1.0d20 1.0l20)
nconc
......@@ -112,6 +107,7 @@
unless (= r (complex 0 (- (/ i))))
collect (list i c r (complex 0 (- (/ i))))))
nil)
|#
(deftest /.8
(loop for bound in (list 1.0s5 1.0f10 1.0d20 1.0l20)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment