\left(d1 \cdot \left(\left(\left(\left(\left(d1 \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right) \cdot d1\right) \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right)\right) \cdot d1
{d1}^{10}double f(double d1) {
double r51712448 = d1;
double r51712449 = r51712448 * r51712448;
double r51712450 = r51712448 * r51712449;
double r51712451 = r51712450 * r51712448;
double r51712452 = r51712451 * r51712448;
double r51712453 = r51712452 * r51712449;
double r51712454 = r51712453 * r51712448;
double r51712455 = r51712448 * r51712454;
double r51712456 = r51712455 * r51712448;
return r51712456;
}
double f(double d1) {
double r51712457 = d1;
double r51712458 = 10.0;
double r51712459 = pow(r51712457, r51712458);
return r51712459;
}




Bits error versus d1
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.1
rmApplied pow10.1
Applied pow-plus0.1
Applied cube-unmult0.1
Applied pow-plus0.1
Applied pow-plus0.1
Applied pow-prod-up0.1
Simplified0.1
Taylor expanded around inf 0
Final simplification0
herbie shell --seed 2019104 +o rules:numerics
(FPCore (d1)
:name "FastMath test5"
:herbie-target
(pow d1 10)
(* (* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1)) d1))