\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\begin{array}{l}
\mathbf{if}\;y \le 3.5234477440446439 \cdot 10^{170}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, y, z \cdot \left(t - a\right)\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}double f(double x, double y, double z, double t, double a, double b) {
double r902004 = x;
double r902005 = y;
double r902006 = r902004 * r902005;
double r902007 = z;
double r902008 = t;
double r902009 = a;
double r902010 = r902008 - r902009;
double r902011 = r902007 * r902010;
double r902012 = r902006 + r902011;
double r902013 = b;
double r902014 = r902013 - r902005;
double r902015 = r902007 * r902014;
double r902016 = r902005 + r902015;
double r902017 = r902012 / r902016;
return r902017;
}
double f(double x, double y, double z, double t, double a, double b) {
double r902018 = y;
double r902019 = 3.523447744044644e+170;
bool r902020 = r902018 <= r902019;
double r902021 = x;
double r902022 = z;
double r902023 = t;
double r902024 = a;
double r902025 = r902023 - r902024;
double r902026 = r902022 * r902025;
double r902027 = fma(r902021, r902018, r902026);
double r902028 = b;
double r902029 = r902028 - r902018;
double r902030 = fma(r902029, r902022, r902018);
double r902031 = r902027 / r902030;
double r902032 = r902020 ? r902031 : r902021;
return r902032;
}




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.1 |
|---|---|
| Target | 17.9 |
| Herbie | 22.7 |
if y < 3.523447744044644e+170Initial program 21.0
rmApplied clear-num21.2
rmApplied div-inv21.3
Applied add-cube-cbrt21.3
Applied times-frac21.2
Simplified21.2
Simplified21.1
rmApplied associate-*l/21.0
Simplified21.0
if 3.523447744044644e+170 < y Initial program 38.3
rmApplied clear-num38.4
rmApplied div-inv38.4
Applied add-cube-cbrt38.4
Applied times-frac38.4
Simplified38.4
Simplified38.4
Taylor expanded around 0 34.5
Final simplification22.7
herbie shell --seed 2020018 +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)))))