\left(x \cdot x\right) \cdot \left(3.0 - x \cdot 2.0\right)
x \cdot \frac{\left(\left(3.0 + x \cdot 2.0\right) \cdot x\right) \cdot \left(3.0 - x \cdot 2.0\right)}{3.0 + x \cdot 2.0}double f(double x) {
double r39539248 = x;
double r39539249 = r39539248 * r39539248;
double r39539250 = 3.0;
double r39539251 = 2.0;
double r39539252 = r39539248 * r39539251;
double r39539253 = r39539250 - r39539252;
double r39539254 = r39539249 * r39539253;
return r39539254;
}
double f(double x) {
double r39539255 = x;
double r39539256 = 3.0;
double r39539257 = 2.0;
double r39539258 = r39539255 * r39539257;
double r39539259 = r39539256 + r39539258;
double r39539260 = r39539259 * r39539255;
double r39539261 = r39539256 - r39539258;
double r39539262 = r39539260 * r39539261;
double r39539263 = r39539262 / r39539259;
double r39539264 = r39539255 * r39539263;
return r39539264;
}




Bits error versus x
Results
| Original | 0.2 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.2
rmApplied associate-*l*0.2
rmApplied flip--0.2
Applied associate-*r/0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019165
(FPCore (x)
:name "Data.Spline.Key:interpolateKeys from smoothie-0.4.0.2"
:herbie-target
(* x (* x (- 3.0 (* x 2.0))))
(* (* x x) (- 3.0 (* x 2.0))))