



Bits error versus x.re




Bits error versus x.im
| Original | 6.8 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 6.8
Taylor expanded around inf 6.8
Simplified0.3
Final simplification0.3
herbie shell --seed 2019072 +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)))