



Bits error versus x.re




Bits error versus x.im
Results
| Original | 6.9 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 6.9
Simplified6.9
Taylor expanded around -inf 6.9
rmApplied unpow26.9
Applied associate-*l*0.2
rmApplied associate-*r*0.2
Final simplification0.2
herbie shell --seed 2019018
(FPCore (x.re x.im)
:name "math.cube on complex, real part"
:herbie-target
(+ (* (* x.re x.re) (- x.re x.im)) (* (* x.re x.im) (- x.re (* 3 x.im))))
(- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im)))
Time bar (total: 13.9s)Debug log
| 50.0ms | 431× | body | 80 | valid |
| 311.0ms | (- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 5.2b
Found 3 expressions with local error:
| 5.2b | (* x.re (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im)))) |
| 0.1b | (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) |
| 0.0b | (+ (* x.im x.im) (* x.im x.im)) |
| 17× | add-log-exp |
| 8× | frac-sub |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | flip-- |
| 6× | associate-*r/ |
| 6× | associate--l+ |
| 6× | diff-log |
| 6× | flip3-- |
| 6× | sub-neg |
| 5× | flip-+ |
| 5× | associate-*r* |
| 5× | flip3-+ |
| 4× | add-cube-cbrt |
| 4× | distribute-lft-in |
| 4× | distribute-rgt-in |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | sum-log |
| 3× | pow1 |
| 2× | difference-of-squares |
| 2× | distribute-lft-out-- |
| 1× | associate--r+ |
| 1× | distribute-lft-out |
| 1× | *-commutative |
| 1× | distribute-rgt-out |
| 1× | +-commutative |
| 1× | associate--l- |
| 31.0ms | (* x.re (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im)))) |
| 17.0ms | (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) |
| 2.0ms | (+ (* x.im x.im) (* x.im x.im)) |
| 42.0ms | (* x.re (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im)))) |
| 32.0ms | (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) |
| 14.0ms | (+ (* x.im x.im) (* x.im x.im)) |
| 446.0ms | (+ (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) |
| 416.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 390.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.im x.im) (* x.im x.im)) (- (* (* x.im x.im) (* x.im x.im)) (* (* x.im x.im) (* x.im x.im))))) |
| 315.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.im x.im) (* x.im x.im)) (- (* (* x.im x.im) (* x.im x.im)) (* (* x.im x.im) (* x.im x.im))))) |
| 248.0ms | (* (- (- (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) x.re) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 5.1b
Found 3 expressions with local error:
| 6.3b | (* (pow x.im 2) x.re) |
| 0.2b | (* 3 (* (pow x.im 2) x.re)) |
| 0.0b | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 5× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | associate-*l* |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | *-commutative |
| 1× | unpow2 |
| 1× | flip-- |
| 1× | associate-*r* |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 4.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 3.0ms | (* (pow x.im 2) x.re) |
| 3.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 45.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 18.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 11.0ms | (* (pow x.im 2) x.re) |
| 152.0ms | (/ (exp (pow x.re 3)) (exp (* 3 (* (pow x.im 2) x.re)))) |
| 97.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 91.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 88.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 30.0ms | (* 3 (* (pow x.im 2) x.re)) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.2b | (* 3 (* x.im (* x.im x.re))) |
| 0.2b | (* x.im (* x.im x.re)) |
| 0.0b | (- (pow x.re 3) (* 3 (* x.im (* x.im x.re)))) |
| 5× | add-log-exp |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | *-un-lft-identity |
| 3× | pow1 |
| 3× | add-sqr-sqrt |
| 2× | *-commutative |
| 2× | associate-*r* |
| 1× | flip-- |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 4.0ms | (- (pow x.re 3) (* 3 (* x.im (* x.im x.re)))) |
| 2.0ms | (* 3 (* x.im (* x.im x.re))) |
| 1.0ms | (* x.im (* x.im x.re)) |
| 27.0ms | (- (pow x.re 3) (* 3 (* x.im (* x.im x.re)))) |
| 12.0ms | (* 3 (* x.im (* x.im x.re))) |
| 11.0ms | (* x.im (* x.im x.re)) |
| 145.0ms | (/ (exp (pow x.re 3)) (exp (* 3 (* x.im (* x.im x.re))))) |
| 140.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 139.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 112.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 34.0ms | (* 3 (* (pow x.im 2) x.re)) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.2b | (* (* 3 x.im) (* x.im x.re)) |
| 0.0b | (- (pow x.re 3) (* (* 3 x.im) (* x.im x.re))) |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | associate-*r* |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 8.0ms | (- (pow x.re 3) (* (* 3 x.im) (* x.im x.re))) |
| 7.0ms | (* (* 3 x.im) (* x.im x.re)) |
| 44.0ms | (- (pow x.re 3) (* (* 3 x.im) (* x.im x.re))) |
| 20.0ms | (* (* 3 x.im) (* x.im x.re)) |
| 649.0ms | (* (* (* (* 3 x.im) (* 3 x.im)) (* 3 x.im)) (* (* (* x.im x.re) (* x.im x.re)) (* x.im x.re))) |
| 148.0ms | (/ (exp (pow x.re 3)) (exp (* (* 3 x.im) (* x.im x.re)))) |
| 104.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 101.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
| 80.0ms | (- (pow x.re 3) (* 3 (* (pow x.im 2) x.re))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.0b
0% (0.1b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 0.2b
| 2.2s | 14287× | body | 80 | valid |