Skip to content

Commit

Permalink
Fixing bugs to get discrete tests to load and run
Browse files Browse the repository at this point in the history
  • Loading branch information
Izaakwltn authored and stylewarning committed Oct 11, 2023
1 parent 5d55a9f commit 9856d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion cl-quil.asd
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
#:global-vars ; Static globals
#:salza2 ; God table compression
#:optima

#+sbcl #:sb-rotate-byte
)
:pathname "src/"
Expand Down
10 changes: 5 additions & 5 deletions tests/discrete/rz-approx-tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
(Interval 0 (Root2plex
(^^ 10 -200) 0)))

(test-interval-solution (Interval (*. xy (best-approx -2.42))
(*. root2 (best-approx 2.33)))
(Interval (*. root2 (best-approx -2.2))
(*. xy (best-approx 2.4)))))
(test-interval-solution (Interval (*s xy (best-approx -2.42))
(*s root2 (best-approx 2.33)))
(Interval (*s root2 (best-approx -2.2))
(*s xy (best-approx 2.4)))))

(define-test j-sub-intervals ()
(let epsilon = 0.05)
Expand Down Expand Up @@ -127,7 +127,7 @@ Corresponds to Lemma 21 (Selinger, 2014)."
(let alpha = (real-part u))
(let beta = (imag-part u))
(let z = (exp (complex 0 (/ theta -2))))
(let u-hat = (*. (complex (map (fn (x) (exact/ x 1)) alpha)
(let u-hat = (*s (complex (map (fn (x) (exact/ x 1)) alpha)
(map (fn (x) (exact/ x 1)) beta))
(^^ (the (Root2plex Fraction) root2) (negate k))))
(let u-hat-float = (complex
Expand Down

0 comments on commit 9856d64

Please sign in to comment.