


Bits error versus re



Bits error versus im
Results
Initial program 0.0
rmApplied distribute-lft-in0.0
Final simplification0.0
herbie shell --seed 2019010
(FPCore (re im)
:name "math.sin on complex, real part"
(* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))))
Time bar (total: 19.3s)Debug log
| 612.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.0b | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 0.0b | (+ (exp (- 0 im)) (exp im)) |
| 7× | *-un-lft-identity |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | associate-*r* |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | add-cube-cbrt |
| 3× | add-sqr-sqrt |
| 2× | distribute-lft-out |
| 2× | flip-+ |
| 2× | associate-*r/ |
| 2× | flip3-+ |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | distribute-lft-in |
| 1× | sum-log |
| 1× | +-commutative |
| 1× | distribute-rgt-in |
| 14.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 6.0ms | (+ (exp (- 0 im)) (exp im)) |
| 95.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 44.0ms | (+ (exp (- 0 im)) (exp im)) |
| 362.0ms | (* 0.5 (* (sin re) (+ (exp (- im)) (exp im)))) |
| 288.0ms | (* 0.5 (* (sin re) (+ (exp im) (exp (* -1 im))))) |
| 251.0ms | (+ (* (exp (- 0 im)) (exp (- 0 im))) (- (* (exp im) (exp im)) (* (exp (- 0 im)) (exp im)))) |
| 240.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 185.0ms | (- (+ (* 1.0 re) (* 0.5 (* re (pow im 2)))) (* 0.16666666666666666 (pow re 3))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.0b | (* (* 0.5 (sin re)) (exp (- 0 im))) |
| 0.0b | (* (* 0.5 (sin re)) (exp im)) |
| 0.0b | (+ (* (* 0.5 (sin re)) (exp (- 0 im))) (* (* 0.5 (sin re)) (exp im))) |
| 8× | associate-*r* |
| 7× | add-cbrt-cube |
| 7× | pow1 |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | add-exp-log |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 2× | sub0-neg |
| 2× | cbrt-unprod |
| 2× | *-commutative |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | pow-prod-down |
| 2× | exp-sum |
| 2× | associate-*l* |
| 2× | exp-neg |
| 1× | distribute-lft-out |
| 1× | flip-+ |
| 1× | un-div-inv |
| 1× | exp-diff |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | +-commutative |
| 18.0ms | (+ (* (* 0.5 (sin re)) (exp (- 0 im))) (* (* 0.5 (sin re)) (exp im))) |
| 7.0ms | (* (* 0.5 (sin re)) (exp im)) |
| 6.0ms | (* (* 0.5 (sin re)) (exp (- 0 im))) |
| 117.0ms | (+ (* (* 0.5 (sin re)) (exp (- 0 im))) (* (* 0.5 (sin re)) (exp im))) |
| 68.0ms | (* (* 0.5 (sin re)) (exp (- 0 im))) |
| 61.0ms | (* (* 0.5 (sin re)) (exp im)) |
| 381.0ms | (+ (* 0.5 (* (sin re) (exp (* -1 im)))) (* 0.5 (* (sin re) (exp im)))) |
| 347.0ms | (* (exp (* (* 0.5 (sin re)) (exp (- 0 im)))) (exp (* (* 0.5 (sin re)) (exp im)))) |
| 312.0ms | (* (* (* (* 0.5 (sin re)) (* 0.5 (sin re))) (* 0.5 (sin re))) (* (* (exp (- 0 im)) (exp (- 0 im))) (exp (- 0 im)))) |
| 285.0ms | (- (* 0.5 re) (+ (* 0.5 (* re im)) (* 0.08333333333333333 (pow re 3)))) |
| 282.0ms | (* (* (* (* 0.5 (sin re)) (* 0.5 (sin re))) (* 0.5 (sin re))) (* (* (exp im) (exp im)) (exp im))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 4.5b | (- (exp (+ im im)) 1) |
| 0.0b | (pow (exp (- 0 im)) 3) |
| 0.0b | (pow (exp im) 3) |
| 0.0b | (* (exp (- im)) (exp (- im))) |
| 19× | exp-prod |
| 16× | add-sqr-sqrt |
| 15× | add-cube-cbrt |
| 15× | *-un-lft-identity |
| 11× | pow1 |
| 8× | cube-prod |
| 8× | add-cbrt-cube |
| 8× | unpow-prod-down |
| 8× | exp-neg |
| 7× | exp-diff |
| 6× | neg-sub0 |
| 5× | pow-prod-up |
| 5× | pow-prod-down |
| 5× | exp-sum |
| 5× | pow-pow |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | neg-mul-1 |
| 4× | frac-times |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | sub-neg |
| 2× | rem-cube-cbrt |
| 2× | associate-*r/ |
| 2× | pow-exp |
| 2× | associate-*l/ |
| 2× | difference-of-sqr-1 |
| 2× | unpow3 |
| 2× | pow-to-exp |
| 2× | cube-mult |
| 2× | cube-div |
| 1× | sub0-neg |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | prod-exp |
| 1× | flip3-- |
| 1× | pow-plus |
| 1× | pow2 |
| 8.0ms | (* (exp (- im)) (exp (- im))) |
| 5.0ms | (- (exp (+ im im)) 1) |
| 2.0ms | (pow (exp (- 0 im)) 3) |
| 1.0ms | (pow (exp im) 3) |
| 22.0ms | (* (exp (- im)) (exp (- im))) |
| 18.0ms | (pow (exp im) 3) |
| 16.0ms | (pow (exp (- 0 im)) 3) |
| 13.0ms | (- (exp (+ im im)) 1) |
| 266.0ms | (* (* (* (exp (- im)) (exp (- im))) (exp (- im))) (* (* (exp (- im)) (exp (- im))) (exp (- im)))) |
| 255.0ms | (+ (* 4/3 (pow im 3)) (+ (* 2 (pow im 2)) (* 2 im))) |
| 143.0ms | (pow (* (cbrt (exp (- 0 im))) (cbrt (exp (- 0 im)))) 3) |
| 113.0ms | (pow (* (cbrt (exp (- 0 im))) (cbrt (exp (- 0 im)))) 3) |
| 69.0ms | (- (+ (* 9/2 (pow im 2)) 1) (* 3 im)) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b