\frac{x}{y \cdot y} - 3\frac{\frac{1}{y}}{\frac{y}{x}} - 3(FPCore (x y) :precision binary64 (- (/ x (* y y)) 3.0))
(FPCore (x y) :precision binary64 (- (/ (/ 1.0 y) (/ y x)) 3.0))
double code(double x, double y) {
return (x / (y * y)) - 3.0;
}
double code(double x, double y) {
return ((1.0 / y) / (y / x)) - 3.0;
}









Bits error versus x









Bits error versus y
Results
| Original | 5.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
| Alternative 1 | |
|---|---|
| Error | 0.1 |
| Cost | 448 |
| Alternative 2 | |
|---|---|
| Error | 5.0 |
| Cost | 448 |
| Alternative 3 | |
|---|---|
| Error | 55.6 |
| Cost | 64 |
| Alternative 4 | |
|---|---|
| Error | 62.2 |
| Cost | 64 |
| Alternative 5 | |
|---|---|
| Error | 62.6 |
| Cost | 64 |

Initial program 5.0
rmApplied clear-num_binary64_62155.1
Simplified0.1
rmApplied div-inv_binary64_62130.1
Applied associate-/r*_binary64_61600.1
Taylor expanded around 0 0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2021044
(FPCore (x y)
:name "Statistics.Sample:$skurtosis from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(- (/ (/ x y) y) 3.0)
(- (/ x (* y y)) 3.0))