



Bits error versus x.re




Bits error versus x.im
Results
| Original | 6.7 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 6.7
Simplified6.7
Taylor expanded around inf 6.6
rmApplied unpow26.6
Applied associate-*l*0.2
rmApplied associate-*r*0.2
Final simplification0.2
herbie shell --seed 2019016
(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: 12.6s)Debug log
| 470× | (pre true 80) |
| 470× | (body real 80) |
| 256.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: 6.0b
Found 4 expressions with local error:
| 6.0b | (* 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)) |
| 0.0b | (- (* x.re x.re) (* x.im x.im)) |
| 20× | add-log-exp |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 8× | frac-sub |
| 7× | flip-- |
| 7× | diff-log |
| 7× | flip3-- |
| 7× | sub-neg |
| 6× | associate-*r/ |
| 6× | associate--l+ |
| 5× | flip-+ |
| 5× | add-cube-cbrt |
| 5× | associate-*r* |
| 5× | flip3-+ |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | distribute-lft-in |
| 4× | pow1 |
| 4× | distribute-rgt-in |
| 3× | difference-of-squares |
| 3× | sum-log |
| 2× | distribute-lft-out-- |
| 1× | associate--r+ |
| 1× | distribute-lft-out |
| 1× | *-commutative |
| 1× | distribute-rgt-out |
| 1× | +-commutative |
| 1× | associate--l- |
| 37.0ms | (* x.re (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im)))) |
| 25.0ms | (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) |
| 5.0ms | (+ (* x.im x.im) (* x.im x.im)) |
| 4.0ms | (- (* x.re x.re) (* x.im x.im)) |
| 46.0ms | (* x.re (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im)))) |
| 37.0ms | (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) |
| 27.0ms | (- (* x.re x.re) (* x.im x.im)) |
| 24.0ms | (+ (* x.im x.im) (* x.im x.im)) |
| 449.0ms | (* (- (+ (* x.im x.im) (* x.im x.im))) x.re) |
| 413.0ms | (+ (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im))) |
| 323.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))))) |
| 277.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))))) |
| 251.0ms | (cbrt (- (- (* x.re x.re) (* x.im x.im)) (+ (* x.im x.im) (* x.im x.im)))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 5.9b
Found 2 expressions with local error:
| 6.5b | (* (pow x.im 2) x.re) |
| 0.2b | (* 3 (* (pow x.im 2) x.re)) |
| 4× | associate-*l* |
| 3× | add-cube-cbrt |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | *-commutative |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 1× | unpow2 |
| 1× | associate-*r* |
| 5.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 4.0ms | (* (pow x.im 2) x.re) |
| 19.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 18.0ms | (* (pow x.im 2) x.re) |
| 33.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 32.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 20.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 5.0ms | (* (pow x.im 2) x.re) |
| 4.0ms | (* (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.2b | (* x.im (* x.im x.re)) |
| 2× | add-log-exp |
| 2× | add-cube-cbrt |
| 2× | *-commutative |
| 2× | add-exp-log |
| 2× | associate-*r* |
| 2× | add-cbrt-cube |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | add-sqr-sqrt |
| 2.0ms | (* 3 (* x.im (* x.im x.re))) |
| 1.0ms | (* x.im (* x.im x.re)) |
| 14.0ms | (* 3 (* x.im (* x.im x.re))) |
| 13.0ms | (* x.im (* x.im x.re)) |
| 33.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 25.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 18.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 8.0ms | (* (pow x.im 2) x.re) |
| 7.0ms | (* (pow x.im 2) x.re) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.2b | (* (* 3 x.im) (* x.im x.re)) |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 1× | add-log-exp |
| 1× | cbrt-unprod |
| 1× | add-cube-cbrt |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | associate-*r* |
| 1× | *-un-lft-identity |
| 1× | add-sqr-sqrt |
| 6.0ms | (* (* 3 x.im) (* x.im x.re)) |
| 21.0ms | (* (* 3 x.im) (* x.im x.re)) |
| 691.0ms | (* (* (* (* 3 x.im) (* 3 x.im)) (* 3 x.im)) (* (* (* x.im x.re) (* x.im x.re)) (* x.im x.re))) |
| 33.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 26.0ms | (* 3 (* (pow x.im 2) x.re)) |
| 24.0ms | (* (* 3 x.im) (* x.im x.re)) |
| 18.0ms | (+ (log (* 3 x.im)) (log (* x.im x.re))) |
8 alts after pruning (6 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
| 14518× | (pre true 80) |
| 14518× | (body real 80) |