x \cdot \left(x \cdot x\right) + x \cdot x
e^{3 \cdot \log x} + x \cdot xdouble f(double x) {
double r6044840 = x;
double r6044841 = r6044840 * r6044840;
double r6044842 = r6044840 * r6044841;
double r6044843 = r6044842 + r6044841;
return r6044843;
}
double f(double x) {
double r6044844 = 3.0;
double r6044845 = x;
double r6044846 = log(r6044845);
double r6044847 = r6044844 * r6044846;
double r6044848 = exp(r6044847);
double r6044849 = r6044845 * r6044845;
double r6044850 = r6044848 + r6044849;
return r6044850;
}




Bits error versus x
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied add-exp-log0.0
Applied add-exp-log0.0
Applied prod-exp0.0
Applied add-exp-log0.0
Applied prod-exp0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019174
(FPCore (x)
:name "Expression 3, p15"
:pre (<= 0.0 x 2.0)
:herbie-target
(* (* (+ 1.0 x) x) x)
(+ (* x (* x x)) (* x x)))