\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 r54426666 = d1;
double r54426667 = r54426666 * r54426666;
double r54426668 = r54426666 * r54426667;
double r54426669 = r54426668 * r54426666;
double r54426670 = r54426669 * r54426666;
double r54426671 = r54426670 * r54426667;
double r54426672 = r54426671 * r54426666;
double r54426673 = r54426666 * r54426672;
double r54426674 = r54426673 * r54426666;
return r54426674;
}
double f(double d1) {
double r54426675 = d1;
double r54426676 = 10.0;
double r54426677 = pow(r54426675, r54426676);
return r54426677;
}




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
Applied pow-plus0.1
Applied pow10.1
Applied pow-prod-up0.0
Simplified0.0
Taylor expanded around -inf 0
Final simplification0
herbie shell --seed 2019128 +o rules:numerics
(FPCore (d1)
:name "FastMath test5"
:herbie-target
(pow d1 10)
(* (* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1)) d1))