\left(x \cdot x\right) \cdot x
\left(x \cdot x\right) \cdot x
(FPCore (x) :precision binary64 (* (* x x) x))
(FPCore (x) :precision binary64 (* (* x x) x))
double code(double x) {
return (x * x) * x;
}
double code(double x) {
return (x * x) * x;
}




Bits error versus x
Results
| Original | 0.1 |
|---|---|
| Target | 0 |
| Herbie | 0.1 |
Initial program 0.1
herbie shell --seed 2021044
(FPCore (x)
:name "math.cube on real"
:precision binary64
:herbie-target
(pow x 3.0)
(* (* x x) x))