\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\begin{array}{l}
\mathbf{if}\;z \le -6.299569873792321719916781138767649824049 \cdot 10^{186} \lor \neg \left(z \le 7.111957851088666958846129400756682389184 \cdot 10^{107}\right):\\
\;\;\;\;\frac{t}{b} - \frac{a}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{fma}\left(t - a, z, y \cdot x\right)}{\mathsf{fma}\left(z, b - y, y\right)}\\
\end{array}double f(double x, double y, double z, double t, double a, double b) {
double r1251212 = x;
double r1251213 = y;
double r1251214 = r1251212 * r1251213;
double r1251215 = z;
double r1251216 = t;
double r1251217 = a;
double r1251218 = r1251216 - r1251217;
double r1251219 = r1251215 * r1251218;
double r1251220 = r1251214 + r1251219;
double r1251221 = b;
double r1251222 = r1251221 - r1251213;
double r1251223 = r1251215 * r1251222;
double r1251224 = r1251213 + r1251223;
double r1251225 = r1251220 / r1251224;
return r1251225;
}
double f(double x, double y, double z, double t, double a, double b) {
double r1251226 = z;
double r1251227 = -6.299569873792322e+186;
bool r1251228 = r1251226 <= r1251227;
double r1251229 = 7.111957851088667e+107;
bool r1251230 = r1251226 <= r1251229;
double r1251231 = !r1251230;
bool r1251232 = r1251228 || r1251231;
double r1251233 = t;
double r1251234 = b;
double r1251235 = r1251233 / r1251234;
double r1251236 = a;
double r1251237 = r1251236 / r1251234;
double r1251238 = r1251235 - r1251237;
double r1251239 = r1251233 - r1251236;
double r1251240 = y;
double r1251241 = x;
double r1251242 = r1251240 * r1251241;
double r1251243 = fma(r1251239, r1251226, r1251242);
double r1251244 = r1251234 - r1251240;
double r1251245 = fma(r1251226, r1251244, r1251240);
double r1251246 = r1251243 / r1251245;
double r1251247 = r1251232 ? r1251238 : r1251246;
return r1251247;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a




Bits error versus b
| Original | 23.4 |
|---|---|
| Target | 18.2 |
| Herbie | 19.5 |
if z < -6.299569873792322e+186 or 7.111957851088667e+107 < z Initial program 48.3
Simplified48.3
rmApplied clear-num48.3
Taylor expanded around inf 32.7
if -6.299569873792322e+186 < z < 7.111957851088667e+107Initial program 15.1
Simplified15.1
rmApplied clear-num15.2
rmApplied associate-/r/15.2
rmApplied *-un-lft-identity15.2
Applied *-un-lft-identity15.2
Applied times-frac15.2
Applied associate-*l*15.2
Simplified15.1
Final simplification19.5
herbie shell --seed 2019235 +o rules:numerics
(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)))))