\left(x \cdot y - z \cdot y\right) \cdot t
t \cdot \left(y \cdot \left(x - z\right)\right)
double f(double x, double y, double z, double t) {
double r326578 = x;
double r326579 = y;
double r326580 = r326578 * r326579;
double r326581 = z;
double r326582 = r326581 * r326579;
double r326583 = r326580 - r326582;
double r326584 = t;
double r326585 = r326583 * r326584;
return r326585;
}
double f(double x, double y, double z, double t) {
double r326586 = t;
double r326587 = y;
double r326588 = x;
double r326589 = z;
double r326590 = r326588 - r326589;
double r326591 = r326587 * r326590;
double r326592 = r326586 * r326591;
return r326592;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.3 |
|---|---|
| Target | 3.2 |
| Herbie | 7.3 |
if y < -1.1059360982223227e-93 or -2.5266942413063604e-231 < y < -6.330270419009957e-269 or 1.046975531496553e-09 < y Initial program 12.0
Simplified12.0
rmApplied associate-*r*4.3
if -1.1059360982223227e-93 < y < -2.5266942413063604e-231Initial program 1.6
Simplified1.6
rmApplied sub-neg1.6
Applied distribute-lft-in1.6
Applied distribute-lft-in1.6
Simplified1.6
Simplified1.6
if -6.330270419009957e-269 < y < 1.046975531496553e-09Initial program 2.4
Simplified2.4
rmApplied associate-*r*9.4
rmApplied associate-*l*2.4
Final simplification7.3
herbie shell --seed 2019298
(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))