x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}x - \frac{\frac{y - z}{\left(t - z\right) + 1}}{\frac{1}{a}}double code(double x, double y, double z, double t, double a) {
return ((double) (x - ((double) (((double) (y - z)) / ((double) (((double) (((double) (t - z)) + 1.0)) / a))))));
}
double code(double x, double y, double z, double t, double a) {
return ((double) (x - ((double) (((double) (((double) (y - z)) / ((double) (((double) (t - z)) + 1.0)))) / ((double) (1.0 / a))))));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 2.0 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 2.0
rmApplied div-inv2.0
Applied associate-/r*0.3
Final simplification0.3
herbie shell --seed 2020171
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
:precision binary64
:herbie-target
(- x (* (/ (- y z) (+ (- t z) 1.0)) a))
(- x (/ (- y z) (/ (+ (- t z) 1.0) a))))