https://github.com/palisades-lakes/xfp-jmh
benchmarks for exact floating poiint algorithms
https://github.com/palisades-lakes/xfp-jmh
Last synced: about 2 months ago
JSON representation
benchmarks for exact floating poiint algorithms
- Host: GitHub
- URL: https://github.com/palisades-lakes/xfp-jmh
- Owner: palisades-lakes
- License: apache-2.0
- Created: 2019-02-21T02:39:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T21:58:43.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T10:50:15.012Z (3 months ago)
- Language: Java
- Size: 574 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes.md
- License: LICENSE
Awesome Lists containing this project
README
# xfp
Utilities for 'exact' floating point calculatation.
By 'exact' floating point operation, I mean a function that takesdouble
(orfloat
)
inputs and returns adouble
(orfloat
)
value,
where the value is what you would get if you could convert all
thedouble
inputs to true real numbers,
do the calculation in real arithmetic,
and then round the real value todouble
at the end.
IEEE 754-1985 andjava.lang.Math
guarantee this for+
,-
,*
,/
,
andsqrt
(andMath.fma
).
IEEE 754-2008 recommends it for a collection of
elementary functions, in addition to the 5 basic operations.java.lang.Math
only offers within 1ulp
accuracy for those functions.)
Any non-trivial floating calculation will compose multiple basic
operations, often returning a value far from the 'exact' ideal of
'real arithmetic rounded at the end'.
An easy, but expensive fix is to
## Usage### Dependency
Available from (TODO repository).
Maven:
```xml
palisades-lakes
xfp
0.0.x```
### Code examples
## Acknowledgments### 
YourKit is kindly supporting open source projects with its full-featured Java
Profiler.YourKit, LLC is the creator of innovative and intelligent tools for profiling
Java and .NET applications. Take a look at YourKit's leading software products: