



Bits error versus x.re




Bits error versus x.im
Results
| Original | 7.0 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 7.0
rmApplied difference-of-squares7.0
Applied associate-*l*0.2
Final simplification0.2
herbie shell --seed 2018362
(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)))
Time bar (total: 1.5m)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 8.6b
Found 4 expressions with local error:
| 8.6b | (* (- (* x.re x.re) (* x.im x.im)) x.im) |
| 0.2b | (+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re)) |
| 0.2b | (* (+ (* x.re x.im) (* x.im x.re)) x.re) |
| 0.0b | (+ (* x.re x.im) (* x.im x.re)) |
4 calls. Slowest were:
| 6.0ms | (+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re)) |
| 4.0ms | (* (- (* x.re x.re) (* x.im x.im)) x.im) |
| 4.0ms | (* (+ (* x.re x.im) (* x.im x.re)) x.re) |
4 calls. Slowest were:
| 54.0ms | (* (- (* x.re x.re) (* x.im x.im)) x.im) |
| 48.0ms | (+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re)) |
| 14.0ms | (+ (* x.re x.im) (* x.im x.re)) |
| 12.0ms | (* (+ (* x.re x.im) (* x.im x.re)) x.re) |
31 calls. Slowest were:
| 2.7s | (* (exp (* (- (* x.re x.re) (* x.im x.im)) x.im)) (exp (* (+ (* x.re x.im) (* x.im x.re)) x.re))) |
| 494.0ms | (* (+ (pow (* x.re x.im) 3) (pow (* x.im x.re) 3)) x.re) |
| 441.0ms | (* (+ (* (* x.re x.re) (* x.re x.re)) (+ (* (* x.im x.im) (* x.im x.im)) (* (* x.re x.re) (* x.im x.im)))) (- (* x.re x.im) (* x.im x.re))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.2b | (* (+ x.re x.im) (* (- x.re x.im) x.im)) |
| 0.2b | (+ (* (+ x.re x.im) (* (- x.re x.im) x.im)) (* (+ (* x.re x.im) (* x.im x.re)) x.re)) |
| 0.2b | (* (+ (* x.re x.im) (* x.im x.re)) x.re) |
| 0.0b | (+ (* x.re x.im) (* x.im x.re)) |
4 calls. Slowest were:
| 21.0ms | (+ (* (+ x.re x.im) (* (- x.re x.im) x.im)) (* (+ (* x.re x.im) (* x.im x.re)) x.re)) |
| 8.0ms | (* (+ x.re x.im) (* (- x.re x.im) x.im)) |
| 6.0ms | (* (+ (* x.re x.im) (* x.im x.re)) x.re) |
4 calls. Slowest were:
| 42.0ms | (* (+ x.re x.im) (* (- x.re x.im) x.im)) |
| 39.0ms | (+ (* (+ x.re x.im) (* (- x.re x.im) x.im)) (* (+ (* x.re x.im) (* x.im x.re)) x.re)) |
| 22.0ms | (+ (* x.re x.im) (* x.im x.re)) |
| 19.0ms | (* (+ (* x.re x.im) (* x.im x.re)) x.re) |
67 calls. Slowest were:
| 624.0ms | (* (- x.re x.im) (+ (* (* x.re x.im) (* x.re x.im)) (- (* (* x.im x.re) (* x.im x.re)) (* (* x.re x.im) (* x.im x.re))))) |
| 598.0ms | (+ (* (* (- (* x.re x.re) (* x.im x.im)) (* (- (* x.re x.re) (* x.im x.im)) x.im)) (+ (* (* x.re x.im) (* x.re x.im)) (- (* (* x.im x.re) (* x.im x.re)) (* (* x.re x.im) (* x.im x.re))))) (* (* (- x.re x.im) (+ x.re x.im)) (* (+ (pow (* x.re x.im) 3) (pow (* x.im x.re) 3)) x.re))) |
| 590.0ms | (* (+ x.re x.im) (+ (* (* x.re x.im) (* x.re x.im)) (- (* (* x.im x.re) (* x.im x.re)) (* (* x.re x.im) (* x.im x.re))))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 11.8b | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
| 11.8b | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
| 11.8b | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
| 0.5b | (* (cbrt (+ (* x.re x.im) (* x.im x.re))) (cbrt (+ (* x.re x.im) (* x.im x.re)))) |
4 calls. Slowest were:
| 15.0ms | (* (cbrt (+ (* x.re x.im) (* x.im x.re))) (cbrt (+ (* x.re x.im) (* x.im x.re)))) |
| 2.0ms | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
| 2.0ms | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
4 calls. Slowest were:
| 182.0ms | (* (cbrt (+ (* x.re x.im) (* x.im x.re))) (cbrt (+ (* x.re x.im) (* x.im x.re)))) |
| 153.0ms | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
| 126.0ms | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
| 107.0ms | (cbrt (+ (* x.re x.im) (* x.im x.re))) |
59 calls. Slowest were:
| 811.0ms | (* (cbrt (- (* x.re x.im) (* x.im x.re))) (cbrt (+ (* (* x.re x.im) (* x.re x.im)) (- (* (* x.im x.re) (* x.im x.re)) (* (* x.re x.im) (* x.im x.re)))))) |
| 712.0ms | (* (cbrt (+ (* (* x.re x.im) (* x.re x.im)) (- (* (* x.im x.re) (* x.im x.re)) (* (* x.re x.im) (* x.im x.re))))) (cbrt (+ (* (* x.re x.im) (* x.re x.im)) (- (* (* x.im x.re) (* x.im x.re)) (* (* x.re x.im) (* x.im x.re)))))) |
| 704.0ms | (* (cbrt (+ (* (* x.re x.im) (* x.re x.im)) (- (* (* x.im x.re) (* x.im x.re)) (* (* x.re x.im) (* x.im x.re))))) (cbrt (- (* x.re x.im) (* x.im x.re)))) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 13.8b | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
| 13.8b | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
| 13.8b | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
| 0.3b | (* (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))) |
4 calls. Slowest were:
| 29.0ms | (* (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))) |
| 5.0ms | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
| 5.0ms | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
4 calls. Slowest were:
| 147.0ms | (* (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))) |
| 143.0ms | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
| 134.0ms | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
| 133.0ms | (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) |
199 calls. Slowest were:
| 867.0ms | (* (cbrt (* (+ x.re x.im) (* (- (* x.re x.re) (* x.im x.im)) x.im))) (cbrt (* (- (* x.re x.re) (* x.im x.im)) (* (- (pow x.re 3) (pow x.im 3)) x.im)))) |
| 775.0ms | (* (cbrt (* (+ (* x.re x.re) (- (* x.im x.im) (* x.re x.im))) (+ (* x.re x.re) (+ (* x.im x.im) (* x.re x.im))))) (cbrt (+ (* x.re x.re) (- (* x.im x.im) (* x.re x.im))))) |
| 728.0ms | (* (cbrt (* (+ (pow x.re 3) (pow x.im 3)) (* (- (* x.re x.re) (* x.im x.im)) x.im))) (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))) |
11 alts after pruning (8 fresh and 3 done)
Merged error: 0b
0% (0.2b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 0.2b