x + \frac{y \cdot \left(z - x\right)}{t}x + \frac{y}{\frac{t}{z - x}}double f(double x, double y, double z, double t) {
double r217252 = x;
double r217253 = y;
double r217254 = z;
double r217255 = r217254 - r217252;
double r217256 = r217253 * r217255;
double r217257 = t;
double r217258 = r217256 / r217257;
double r217259 = r217252 + r217258;
return r217259;
}
double f(double x, double y, double z, double t) {
double r217260 = x;
double r217261 = y;
double r217262 = t;
double r217263 = z;
double r217264 = r217263 - r217260;
double r217265 = r217262 / r217264;
double r217266 = r217261 / r217265;
double r217267 = r217260 + r217266;
return r217267;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 6.3 |
|---|---|
| Target | 2.2 |
| Herbie | 6.1 |
if x < -3.908231963040019e-294 or 4.1676572019103e-54 < x Initial program 6.8
rmApplied clear-num6.8
rmApplied div-inv6.9
Applied associate-/r*7.0
rmApplied *-un-lft-identity7.0
Applied *-un-lft-identity7.0
Applied add-cube-cbrt7.0
Applied times-frac7.0
Applied times-frac7.0
Simplified7.0
Simplified1.4
rmApplied associate-*l/1.3
if -3.908231963040019e-294 < x < 4.1676572019103e-54Initial program 4.8
rmApplied associate-/l*4.1
Final simplification6.1
herbie shell --seed 2019298
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, D"
:precision binary64
:herbie-target
(- x (+ (* x (/ y t)) (* (- z) (/ y t))))
(+ x (/ (* y (- z x)) t)))