x \cdot \left(x \cdot x\right) + x \cdot x
\frac{x \cdot x + x \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)}{x \cdot x + \left(1 - x\right)}double f(double x) {
double r26469951 = x;
double r26469952 = r26469951 * r26469951;
double r26469953 = r26469951 * r26469952;
double r26469954 = r26469953 + r26469952;
return r26469954;
}
double f(double x) {
double r26469955 = x;
double r26469956 = r26469955 * r26469955;
double r26469957 = r26469956 * r26469956;
double r26469958 = r26469955 * r26469957;
double r26469959 = r26469956 + r26469958;
double r26469960 = 1.0;
double r26469961 = r26469960 - r26469955;
double r26469962 = r26469956 + r26469961;
double r26469963 = r26469959 / r26469962;
return r26469963;
}




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 2019119
(FPCore (x)
:name "Expression 3, p15"
:pre (<= 0 x 2)
:herbie-target
(* (* (+ 1.0 x) x) x)
(+ (* x (* x x)) (* x x)))