\left(x \cdot y - z \cdot y\right) \cdot t
y \cdot \left(\left(x - z\right) \cdot t\right)
double f(double x, double y, double z, double t) {
double r308062 = x;
double r308063 = y;
double r308064 = r308062 * r308063;
double r308065 = z;
double r308066 = r308065 * r308063;
double r308067 = r308064 - r308066;
double r308068 = t;
double r308069 = r308067 * r308068;
return r308069;
}
double f(double x, double y, double z, double t) {
double r308070 = y;
double r308071 = x;
double r308072 = z;
double r308073 = r308071 - r308072;
double r308074 = t;
double r308075 = r308073 * r308074;
double r308076 = r308070 * r308075;
return r308076;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.3 |
|---|---|
| Target | 3.0 |
| Herbie | 7.2 |
if (- (* x y) (* z y)) < -3.289691432454229e+212 or 4.136353068354157e+151 < (- (* x y) (* z y)) Initial program 25.5
rmApplied distribute-rgt-out--25.5
Applied associate-*l*1.5
if -3.289691432454229e+212 < (- (* x y) (* z y)) < 4.136353068354157e+151Initial program 1.7
Final simplification7.2
herbie shell --seed 2019304
(FPCore (x y z t)
:name "Linear.Projection:inverseInfinitePerspective from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -9.2318795828867769e-80) (* (* y t) (- x z)) (if (< t 2.5430670515648771e83) (* y (* t (- x z))) (* (* y (- x z)) t)))
(* (- (* x y) (* z y)) t))