Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
38526297
Commit
38526297
authored
Aug 23, 2003
by
pfdietz
Browse files
More fixes of incompatible float/rational comparisons.
parent
9dfc672d
Changes
1
Show whitespace changes
Inline
Side-by-side
ansi-tests/numbers-aux.lsp
View file @
38526297
...
...
@@ -153,19 +153,21 @@
(loop for x in *reals*
nconc
(loop for y in *reals*
for m = (max x y)
unless (and (>= m x) (>= m y)
(or (= m x) (= m y)))
collect (list x y m))))
when (numbers-are-compatible x y)
unless (let ((m (max x y)))
(and (>= m x) (>= m y)
(or (= m x) (= m y))))
collect (list x y (max x y)))))
(defun min.2-fn ()
(loop for x in *reals*
nconc
(loop for y in *reals*
for m = (min x y)
unless (and (<= m x) (<= m y)
(or (= m x) (= m y)))
collect (list x y m))))
when (numbers-are-compatible x y)
unless (let ((m (min x y)))
(and (<= m x) (<= m y)
(or (= m x) (= m y))))
collect (list x y (min x y)))))
(defun random-nonnegative-real ()
(if (coin 3)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment