\frac{x0}{1 - x1} - x0\frac{x0 \cdot \frac{\log \left(e^{\frac{{x0}^{3}}{{\left(1 - x1\right)}^{6}} - {x0}^{3}}\right)}{\left(\frac{x0}{\left(1 - x1\right) \cdot \left(1 - x1\right)} + x0\right) \cdot \frac{x0}{\left(1 - x1\right) \cdot \left(1 - x1\right)} + x0 \cdot x0}}{\frac{x0}{1 - x1} + x0}double f(double x0, double x1) {
double r155872 = x0;
double r155873 = 1.0;
double r155874 = x1;
double r155875 = r155873 - r155874;
double r155876 = r155872 / r155875;
double r155877 = r155876 - r155872;
return r155877;
}
double f(double x0, double x1) {
double r155878 = x0;
double r155879 = 3.0;
double r155880 = pow(r155878, r155879);
double r155881 = 1.0;
double r155882 = x1;
double r155883 = r155881 - r155882;
double r155884 = 6.0;
double r155885 = pow(r155883, r155884);
double r155886 = r155880 / r155885;
double r155887 = r155886 - r155880;
double r155888 = exp(r155887);
double r155889 = log(r155888);
double r155890 = r155883 * r155883;
double r155891 = r155878 / r155890;
double r155892 = r155891 + r155878;
double r155893 = r155892 * r155891;
double r155894 = r155878 * r155878;
double r155895 = r155893 + r155894;
double r155896 = r155889 / r155895;
double r155897 = r155878 * r155896;
double r155898 = r155878 / r155883;
double r155899 = r155898 + r155878;
double r155900 = r155897 / r155899;
return r155900;
}




Bits error versus x0




Bits error versus x1
Results
| Original | 7.8 |
|---|---|
| Target | 0.2 |
| Herbie | 4.5 |
Initial program 7.8
rmApplied div-inv7.6
rmApplied flip--6.0
Simplified6.9
Simplified6.9
rmApplied flip3--6.6
Simplified4.9
Simplified4.9
rmApplied add-log-exp4.9
Applied add-log-exp4.9
Applied diff-log4.6
Simplified4.5
Final simplification4.5
herbie shell --seed 2019179
(FPCore (x0 x1)
:name "(- (/ x0 (- 1 x1)) x0)"
:pre (or (and (== x0 1.855) (== x1 0.000209)) (and (== x0 2.985) (== x1 0.0186)))
:herbie-target
(/ (* x0 x1) (- 1.0 x1))
(- (/ x0 (- 1.0 x1)) x0))