Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
49ac8b1a
Commit
49ac8b1a
authored
Apr 30, 2005
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move approx= to ansi-aux.lsp
parent
58141c01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ansi-tests/ansi-aux.lsp
ansi-tests/ansi-aux.lsp
+5
-1
ansi-tests/numbers-aux.lsp
ansi-tests/numbers-aux.lsp
+0
-4
No files found.
ansi-tests/ansi-aux.lsp
View file @
49ac8b1a
...
@@ -1034,4 +1034,8 @@ the condition to go uncaught if it cannot be classified."
...
@@ -1034,4 +1034,8 @@ the condition to go uncaught if it cannot be classified."
(let ((eps 1.0d-4))
(let ((eps 1.0d-4))
(<= (abs (- x y))
(<= (abs (- x y))
(* eps (max (abs x) (abs y))))))
(* eps (max (abs x) (abs y))))))
|#
|#
\ No newline at end of file
;;; Approximate equality function
(defun approx= (x y &optional (eps (epsilon x)))
(<= (abs (/ (- x y) (max (abs x) 1))) eps))
ansi-tests/numbers-aux.lsp
View file @
49ac8b1a
...
@@ -334,10 +334,6 @@
...
@@ -334,10 +334,6 @@
do (setq eps next-eps)
do (setq eps next-eps)
finally (return (values i eps (float eps one))))))
finally (return (values i eps (float eps one))))))
;;; Approximate equality function
(defun approx= (x y &optional (eps (epsilon x)))
(<= (abs (/ (- x y) (max (abs x) 1))) eps))
(defun test-log-op-with-decls (op xlo xhi ylo yhi niters
(defun test-log-op-with-decls (op xlo xhi ylo yhi niters
&optional
&optional
(decls '((optimize (speed 3) (safety 1)
(decls '((optimize (speed 3) (safety 1)
...
...
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