\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 r381723 = x;
double r381724 = y;
double r381725 = r381723 * r381724;
double r381726 = z;
double r381727 = r381726 * r381724;
double r381728 = r381725 - r381727;
double r381729 = t;
double r381730 = r381728 * r381729;
return r381730;
}
double f(double x, double y, double z, double t) {
double r381731 = t;
double r381732 = y;
double r381733 = x;
double r381734 = z;
double r381735 = r381733 - r381734;
double r381736 = r381732 * r381735;
double r381737 = r381731 * r381736;
return r381737;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.2 |
|---|---|
| Target | 3.2 |
| Herbie | 7.2 |
if (- (* x y) (* z y)) < -1.0155072420958704e+257 or 1.217232128331509e+202 < (- (* x y) (* z y)) Initial program 33.1
rmApplied distribute-rgt-out--33.1
Applied associate-*l*1.0
Simplified1.0
rmApplied sub-neg1.0
Applied distribute-rgt-in1.0
Applied distribute-rgt-in1.0
Simplified1.0
Simplified0.8
if -1.0155072420958704e+257 < (- (* x y) (* z y)) < -5.279246409100828e-146 or 2.531528260187281e-107 < (- (* x y) (* z y)) < 1.217232128331509e+202Initial program 0.3
if -5.279246409100828e-146 < (- (* x y) (* z y)) < 2.531528260187281e-107Initial program 6.0
rmApplied distribute-rgt-out--6.0
Applied associate-*l*2.0
Simplified2.0
rmApplied sub-neg2.0
Applied distribute-rgt-in2.0
Final simplification7.2
herbie shell --seed 2019291
(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))