\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 ((double) (((double) (((double) (d1 * d1)) * d1)) * d1));
}
double code(double d1) {
return ((double) pow(d1, 4.0));
}




Bits error versus d1
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program Error: 0.1 bits
SimplifiedError: 0 bits
Final simplificationError: 0 bits
herbie shell --seed 2020204
(FPCore (d1)
:name "FastMath repmul"
:precision binary64
:herbie-target
(pow d1 4.0)
(* (* (* d1 d1) d1) d1))