



Bits error versus x.re




Bits error versus x.im
| Original | 6.9 |
|---|---|
| Target | 0.2 |
| Herbie | 7.0 |
Initial program 6.9
Simplified7.0
Final simplification7.0
herbie shell --seed 2019091 +o rules:numerics
(FPCore (x.re x.im)
:name "math.cube on complex, imaginary part"
:herbie-target
(+ (* (* x.re x.im) (* 2 x.re)) (* (* x.im (- x.re x.im)) (+ x.re x.im)))
(+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re)))