x + y \cdot \frac{z - t}{z - a}x + y \cdot \frac{z - t}{z - a}double f(double x, double y, double z, double t, double a) {
double r435653 = x;
double r435654 = y;
double r435655 = z;
double r435656 = t;
double r435657 = r435655 - r435656;
double r435658 = a;
double r435659 = r435655 - r435658;
double r435660 = r435657 / r435659;
double r435661 = r435654 * r435660;
double r435662 = r435653 + r435661;
return r435662;
}
double f(double x, double y, double z, double t, double a) {
double r435663 = x;
double r435664 = y;
double r435665 = z;
double r435666 = t;
double r435667 = r435665 - r435666;
double r435668 = a;
double r435669 = r435665 - r435668;
double r435670 = r435667 / r435669;
double r435671 = r435664 * r435670;
double r435672 = r435663 + r435671;
return r435672;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 1.3 |
|---|---|
| Target | 1.2 |
| Herbie | 1.3 |
if y < -6.366002923159597e-72 or 1.0253879521988147e-19 < y Initial program 0.6
if -6.366002923159597e-72 < y < 1.0253879521988147e-19Initial program 2.1
rmApplied div-inv2.1
Applied associate-*r*0.4
Final simplification1.3
herbie shell --seed 2019291
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))