Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs417-lecture-examples
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Kennedy
cs417-lecture-examples
Commits
667e16a7
Commit
667e16a7
authored
4 years ago
by
Thomas Kennedy
Browse files
Options
Downloads
Patches
Plain Diff
Add README to Rust Cleve-Moler Example
parent
9a93d470
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FPvsArbitraryPrecision/FP-ErrorEstimate-Rust/README.md
+77
-0
77 additions, 0 deletions
FPvsArbitraryPrecision/FP-ErrorEstimate-Rust/README.md
with
77 additions
and
0 deletions
FPvsArbitraryPrecision/FP-ErrorEstimate-Rust/README.md
0 → 100644
+
77
−
0
View file @
667e16a7
# Overview
This is a Rust Example of the Cleve-Molder precision estimate algorithm.
# Requirements
-
Rust
-
Cargo
-
`hyperfine`
The
`hyperfine`
utility can be installed using cargo
```
cargo install hyperfine
```
# Compilation
The code can be compiled in debug mode using
```
cargo build
```
or in release (optimized) mode using
```
cargo build --release
```
# Sample Execution & Output
The standard
`cargo run [--release]`
command can by used to run the example.
To run the program directly (i.e., without the overhead of Cargo) use
```
target/debug/fp-error-estimate
```
for debug mode or
```
target/relase/fp-error-estimate
```
for release (optimized) mode.
## Abbreviated Sample Output
```
1 -> 1.0
2 -> 5.0e-1
3 -> 2.5e-1
4 -> 1.25e-1
5 -> 6.25e-2
6 -> 3.12e-2
7 -> 1.562e-2
8 -> 7.812e-3
9 -> 3.906e-3
10 -> 1.9531e-3
11 -> 9.7656e-4
12 -> 4.8828e-4
13 -> 2.4414e-4
14 -> 1.22070e-4
15 -> 6.10352e-5
16 -> 3.05176e-5
17 -> 1.525879e-5
18 -> 7.629395e-6
19 -> 3.814697e-6
20 -> 1.9073486e-6
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment