\frac{x}{y - z \cdot t}\frac{x}{y - z \cdot t}double f(double x, double y, double z, double t) {
double r799640 = x;
double r799641 = y;
double r799642 = z;
double r799643 = t;
double r799644 = r799642 * r799643;
double r799645 = r799641 - r799644;
double r799646 = r799640 / r799645;
return r799646;
}
double f(double x, double y, double z, double t) {
double r799647 = x;
double r799648 = y;
double r799649 = z;
double r799650 = t;
double r799651 = r799649 * r799650;
double r799652 = r799648 - r799651;
double r799653 = r799647 / r799652;
return r799653;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 2.9 |
|---|---|
| Target | 1.7 |
| Herbie | 2.9 |
Initial program 2.9
rmApplied clear-num3.4
rmApplied *-un-lft-identity3.4
Applied *-un-lft-identity3.4
Applied times-frac3.4
Applied add-cube-cbrt3.4
Applied times-frac3.4
Simplified3.4
Simplified2.9
Final simplification2.9
herbie shell --seed 2020021
(FPCore (x y z t)
:name "Diagrams.Solve.Tridiagonal:solveTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:herbie-target
(if (< x -1.618195973607049e+50) (/ 1 (- (/ y x) (* (/ z x) t))) (if (< x 2.1378306434876444e+131) (/ x (- y (* z t))) (/ 1 (- (/ y x) (* (/ z x) t)))))
(/ x (- y (* z t))))