\left(\left(d1 \cdot d1\right) \cdot d1\right) \cdot d1
{d1}^{4}(FPCore (d1) :precision binary64 (* (* (* d1 d1) d1) d1))
(FPCore (d1) :precision binary64 (pow d1 4.0))
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 2020232
(FPCore (d1)
:name "FastMath repmul"
:precision binary64
:herbie-target
(pow d1 4.0)
(* (* (* d1 d1) d1) d1))