\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 r378566 = x;
double r378567 = y;
double r378568 = r378566 * r378567;
double r378569 = z;
double r378570 = r378569 * r378567;
double r378571 = r378568 - r378570;
double r378572 = t;
double r378573 = r378571 * r378572;
return r378573;
}
double f(double x, double y, double z, double t) {
double r378574 = y;
double r378575 = x;
double r378576 = z;
double r378577 = r378575 - r378576;
double r378578 = t;
double r378579 = r378577 * r378578;
double r378580 = r378574 * r378579;
return r378580;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.2 |
|---|---|
| Target | 3.0 |
| Herbie | 7.2 |
if (- (* x y) (* z y)) < -5.34400978543849e+238 or -3.0325630152132626e-207 < (- (* x y) (* z y)) < 3.7352386529616e-316 or 1.1466478937381798e+156 < (- (* x y) (* z y)) Initial program 23.1
rmApplied distribute-rgt-out--23.1
Applied associate-*l*1.4
if -5.34400978543849e+238 < (- (* x y) (* z y)) < -3.0325630152132626e-207 or 3.7352386529616e-316 < (- (* x y) (* z y)) < 1.1466478937381798e+156Initial program 0.3
Final simplification7.2
herbie shell --seed 1978988140
(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))