\left(\left(d1 \cdot d1\right) \cdot d1\right) \cdot d1
{d1}^{4}double code(double d1) {
return (((d1 * d1) * d1) * d1);
}
double code(double d1) {
return pow(d1, 4.0);
}




Bits error versus d1
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.1
Simplified0
Final simplification0
herbie shell --seed 2020092
(FPCore (d1)
:name "FastMath repmul"
:precision binary64
:herbie-target
(pow d1 4)
(* (* (* d1 d1) d1) d1))