\frac{\left(x + y\right) - z}{t \cdot 2}
0.5 \cdot \frac{\left(y + x\right) - z}{t}
(FPCore (x y z t) :precision binary64 (/ (- (+ x y) z) (* t 2.0)))
(FPCore (x y z t) :precision binary64 (* 0.5 (/ (- (+ y x) z) t)))
double code(double x, double y, double z, double t) {
return ((x + y) - z) / (t * 2.0);
}
double code(double x, double y, double z, double t) {
return 0.5 * (((y + x) - z) / t);
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
Initial program 0.1
rmApplied div-sub_binary640.1
Simplified0.1
Taylor expanded around 0 0.0
Simplified0.4
rmApplied *-un-lft-identity_binary640.4
Applied *-un-lft-identity_binary640.4
Applied times-frac_binary640.4
Applied *-un-lft-identity_binary640.4
Applied times-frac_binary640.4
Simplified0.4
Simplified0.0
Final simplification0.0
herbie shell --seed 2021207
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, B"
:precision binary64
(/ (- (+ x y) z) (* t 2.0)))