\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\begin{array}{l}
\mathbf{if}\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} = -\infty:\\
\;\;\;\;x\\
\mathbf{elif}\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \le 2.92304847454908781141308022337050046492 \cdot 10^{262}:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}double f(double x, double y, double z, double t, double a, double b) {
double r575102 = x;
double r575103 = y;
double r575104 = r575102 * r575103;
double r575105 = z;
double r575106 = t;
double r575107 = a;
double r575108 = r575106 - r575107;
double r575109 = r575105 * r575108;
double r575110 = r575104 + r575109;
double r575111 = b;
double r575112 = r575111 - r575103;
double r575113 = r575105 * r575112;
double r575114 = r575103 + r575113;
double r575115 = r575110 / r575114;
return r575115;
}
double f(double x, double y, double z, double t, double a, double b) {
double r575116 = x;
double r575117 = y;
double r575118 = r575116 * r575117;
double r575119 = z;
double r575120 = t;
double r575121 = a;
double r575122 = r575120 - r575121;
double r575123 = r575119 * r575122;
double r575124 = r575118 + r575123;
double r575125 = b;
double r575126 = r575125 - r575117;
double r575127 = r575119 * r575126;
double r575128 = r575117 + r575127;
double r575129 = r575124 / r575128;
double r575130 = -inf.0;
bool r575131 = r575129 <= r575130;
double r575132 = 2.9230484745490878e+262;
bool r575133 = r575129 <= r575132;
double r575134 = r575133 ? r575129 : r575116;
double r575135 = r575131 ? r575116 : r575134;
return r575135;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a




Bits error versus b
Results
| Original | 23.0 |
|---|---|
| Target | 17.8 |
| Herbie | 19.2 |
if (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))) < -inf.0 or 2.9230484745490878e+262 < (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))) Initial program 61.2
rmApplied sub-neg61.2
Applied distribute-rgt-in61.2
Applied associate-+r+61.2
Simplified61.2
Taylor expanded around 0 48.9
if -inf.0 < (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))) < 2.9230484745490878e+262Initial program 6.3
rmApplied clear-num6.4
rmApplied *-un-lft-identity6.4
Applied *-un-lft-identity6.4
Applied times-frac6.4
Applied add-cube-cbrt6.4
Applied times-frac6.4
Simplified6.4
Simplified6.3
Final simplification19.2
herbie shell --seed 2019323
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
:herbie-target
(- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z))))
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))