x \cdot \left(x \cdot x\right) + x \cdot x
x \cdot x + e^{3 \cdot \log x}double f(double x) {
double r4458167 = x;
double r4458168 = r4458167 * r4458167;
double r4458169 = r4458167 * r4458168;
double r4458170 = r4458169 + r4458168;
return r4458170;
}
double f(double x) {
double r4458171 = x;
double r4458172 = r4458171 * r4458171;
double r4458173 = 3.0;
double r4458174 = log(r4458171);
double r4458175 = r4458173 * r4458174;
double r4458176 = exp(r4458175);
double r4458177 = r4458172 + r4458176;
return r4458177;
}




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)))