x \cdot \left(x \cdot x\right) + x \cdot x
\frac{{x}^{2} + {x}^{5}}{x \cdot x + \left(1 - x \cdot 1\right)}double f(double x) {
double r90362 = x;
double r90363 = r90362 * r90362;
double r90364 = r90362 * r90363;
double r90365 = r90364 + r90363;
return r90365;
}
double f(double x) {
double r90366 = x;
double r90367 = 2.0;
double r90368 = pow(r90366, r90367);
double r90369 = 5.0;
double r90370 = pow(r90366, r90369);
double r90371 = r90368 + r90370;
double r90372 = r90366 * r90366;
double r90373 = 1.0;
double r90374 = r90366 * r90373;
double r90375 = r90373 - r90374;
double r90376 = r90372 + r90375;
double r90377 = r90371 / r90376;
return r90377;
}




Bits error versus x
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft1-in0.0
rmApplied flip3-+0.0
Applied associate-*l/0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020018
(FPCore (x)
:name "Expression 3, p15"
:precision binary64
:pre (<= 0.0 x 2)
:herbie-target
(* (* (+ 1 x) x) x)
(+ (* x (* x x)) (* x x)))