


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 +o rules:numerics
(FPCore (re im)
:name "math.sin on complex, real part"
(* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))))
Time bar (total: 25.1s)Debug log
| 534.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)) |
| 8× | *-un-lft-identity |
| 5× | fma-def |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | associate-*r* |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | add-sqr-sqrt |
| 2× | distribute-lft-out |
| 2× | log1p-expm1-u |
| 2× | flip-+ |
| 2× | associate-*r/ |
| 2× | exp-sum |
| 2× | flip3-+ |
| 2× | expm1-log1p-u |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | distribute-lft-in |
| 1× | sub-neg |
| 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))) |
| 42.0ms | (+ (exp (- 0 im)) (exp im)) |
| 508.0ms | (* 0.5 (* (sin re) (+ (exp (- im)) (exp im)))) |
| 482.0ms | (* 0.5 (* (sin re) (+ (exp im) (exp (* -1 im))))) |
| 453.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 366.0ms | (- (+ (* 1.0 re) (* 0.5 (* re (pow im 2)))) (* 0.16666666666666666 (pow re 3))) |
| 298.0ms | (+ (* (exp (- 0 im)) (exp (- 0 im))) (- (* (exp im) (exp im)) (* (exp (- 0 im)) (exp im)))) |
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 |
| 3× | log1p-expm1-u |
| 3× | expm1-log1p-u |
| 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× | fma-def |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | +-commutative |
| 19.0ms | (+ (* (* 0.5 (sin re)) (exp (- 0 im))) (* (* 0.5 (sin re)) (exp im))) |
| 13.0ms | (* (* 0.5 (sin re)) (exp (- 0 im))) |
| 9.0ms | (* (* 0.5 (sin re)) (exp im)) |
| 127.0ms | (+ (* (* 0.5 (sin re)) (exp (- 0 im))) (* (* 0.5 (sin re)) (exp im))) |
| 66.0ms | (* (* 0.5 (sin re)) (exp (- 0 im))) |
| 39.0ms | (* (* 0.5 (sin re)) (exp im)) |
| 840.0ms | (+ (* 0.5 (* (sin re) (exp (* -1 im)))) (* 0.5 (* (sin re) (exp im)))) |
| 660.0ms | (- (+ (* 0.5 re) (* 0.5 (* re im))) (* 0.08333333333333333 (pow re 3))) |
| 620.0ms | (* (exp (* (* 0.5 (sin re)) (exp (- 0 im)))) (exp (* (* 0.5 (sin re)) (exp im)))) |
| 510.0ms | (+ (* 0.5 (* (exp (- im)) (sin re))) (* 0.5 (* (sin re) (exp im)))) |
| 349.0ms | (- (+ (* 1.0 re) (* 0.5 (* re (pow im 2)))) (* 0.16666666666666666 (pow re 3))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (pow (exp (- 0 im)) 3) |
| 0.0b | (pow (exp im) 3) |
| 0.0b | (/ (* (* 0.5 (sin re)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3))) (fma (exp (- im)) (exp (- im)) (expm1 (+ im im)))) |
| 0.0b | (fma (exp (- im)) (exp (- im)) (expm1 (+ im im))) |
| 11× | add-cube-cbrt |
| 11× | add-cbrt-cube |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | add-exp-log |
| 8× | cube-prod |
| 8× | unpow-prod-down |
| 6× | pow1 |
| 5× | pow-pow |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | exp-sum |
| 4× | expm1-log1p-u |
| 3× | times-frac |
| 3× | associate-/r* |
| 3× | exp-prod |
| 2× | associate-/l/ |
| 2× | rem-cube-cbrt |
| 2× | associate-*r/ |
| 2× | pow-exp |
| 2× | div-exp |
| 2× | unpow3 |
| 2× | sub-neg |
| 2× | cbrt-undiv |
| 2× | pow-to-exp |
| 2× | cube-mult |
| 2× | cube-div |
| 1× | sub0-neg |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | fma-udef |
| 1× | flip-+ |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | exp-diff |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | exp-neg |
| 18.0ms | (/ (* (* 0.5 (sin re)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3))) (fma (exp (- im)) (exp (- im)) (expm1 (+ im im)))) |
| 4.0ms | (pow (exp (- 0 im)) 3) |
| 1.0ms | (pow (exp im) 3) |
| 0.0ms | (fma (exp (- im)) (exp (- im)) (expm1 (+ im im))) |
| 231.0ms | (/ (* (* 0.5 (sin re)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3))) (fma (exp (- im)) (exp (- im)) (expm1 (+ im im)))) |
| 55.0ms | (fma (exp (- im)) (exp (- im)) (expm1 (+ im im))) |
| 29.0ms | (pow (exp im) 3) |
| 25.0ms | (pow (exp (- 0 im)) 3) |
| 377.0ms | (* (* 0.5 (sin re)) (+ (pow (pow (exp (- 0 im)) 3) 3) (pow (pow (exp im) 3) 3))) |
| 333.0ms | (* (* 0.5 (sin re)) (- (* (pow (exp (- 0 im)) 3) (pow (exp (- 0 im)) 3)) (* (pow (exp im) 3) (pow (exp im) 3)))) |
| 324.0ms | (- (log (* (* 0.5 (sin re)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3)))) (log (fma (exp (- im)) (exp (- im)) (expm1 (+ im im))))) |
| 297.0ms | (/ (* (* (* (* 0.5 (sin re)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3))) (* (* 0.5 (sin re)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3)))) (* (* 0.5 (sin re)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3)))) (* (* (fma (exp (- im)) (exp (- im)) (expm1 (+ im im))) (fma (exp (- im)) (exp (- im)) (expm1 (+ im im)))) (fma (exp (- im)) (exp (- im)) (expm1 (+ im im))))) |
| 273.0ms | (/ (* (* (* (* 0.5 (sin re)) (* 0.5 (sin re))) (* 0.5 (sin re))) (* (* (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3)) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3))) (+ (pow (exp (- 0 im)) 3) (pow (exp im) 3)))) (* (* (fma (exp (- im)) (exp (- im)) (expm1 (+ im im))) (fma (exp (- im)) (exp (- im)) (expm1 (+ im im)))) (fma (exp (- im)) (exp (- im)) (expm1 (+ im 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