


Bits error versus re



Bits error versus im
Results
Initial program 0.0
rmApplied distribute-rgt-in0.0
Final simplification0.0
herbie shell --seed 2019022 +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: 17.5s)Debug log
| 103.0ms | 96× | body | 1280 | valid |
| 53.0ms | 246× | body | 80 | valid |
| 47.0ms | 65× | body | 640 | valid |
| 19.0ms | 41× | body | 320 | valid |
| 7.0ms | 25× | body | 160 | valid |
| 476.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 4× | associate-*r* |
| 4× | *-un-lft-identity |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | add-cube-cbrt |
| 2× | associate-*r/ |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | distribute-lft-out |
| 1× | log1p-expm1-u |
| 1× | flip-+ |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | flip3-+ |
| 1× | distribute-lft-in |
| 1× | expm1-log1p-u |
| 1× | distribute-rgt-in |
| 15.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 127.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 473.0ms | (* 0.5 (* (sin re) (+ (exp im) (exp (* -1 im))))) |
| 426.0ms | (* 0.5 (* (sin re) (+ (exp (- im)) (exp im)))) |
| 416.0ms | (* (* 0.5 (sin re)) (+ (exp (- 0 im)) (exp im))) |
| 304.0ms | (- (+ (* 1.0 re) (* 0.5 (* re (pow im 2)))) (* 0.16666666666666666 (pow re 3))) |
| 292.0ms | (+ (* (exp (- 0 im)) (exp (- 0 im))) (- (* (exp im) (exp im)) (* (exp (- 0 im)) (exp im)))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.0b | (* (exp im) (* 0.5 (sin re))) |
| 0.0b | (* (exp (- 0 im)) (* 0.5 (sin re))) |
| 0.0b | (+ (* (exp (- 0 im)) (* 0.5 (sin re))) (* (exp im) (* 0.5 (sin re)))) |
| 8× | associate-*l* |
| 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× | cbrt-unprod |
| 2× | *-commutative |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 2× | exp-sum |
| 2× | associate-*r* |
| 1× | sub0-neg |
| 1× | flip-+ |
| 1× | exp-diff |
| 1× | distribute-rgt-out |
| 1× | flip3-+ |
| 1× | fma-def |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | +-commutative |
| 1× | exp-neg |
| 12.0ms | (+ (* (exp (- 0 im)) (* 0.5 (sin re))) (* (exp im) (* 0.5 (sin re)))) |
| 8.0ms | (* (exp (- 0 im)) (* 0.5 (sin re))) |
| 5.0ms | (* (exp im) (* 0.5 (sin re))) |
| 128.0ms | (+ (* (exp (- 0 im)) (* 0.5 (sin re))) (* (exp im) (* 0.5 (sin re)))) |
| 75.0ms | (* (exp im) (* 0.5 (sin re))) |
| 61.0ms | (* (exp (- 0 im)) (* 0.5 (sin re))) |
| 1.1s | (+ (* 0.5 (* (sin re) (exp (* -1 im)))) (* 0.5 (* (sin re) (exp im)))) |
| 538.0ms | (* (exp (* (exp (- 0 im)) (* 0.5 (sin re)))) (exp (* (exp im) (* 0.5 (sin re))))) |
| 459.0ms | (+ (* 0.5 (* re im)) (+ (* 0.5 re) (* 0.25 (* re (pow im 2))))) |
| 410.0ms | (+ (* 0.5 (* (exp (- im)) (sin re))) (* 0.5 (* (sin re) (exp im)))) |
| 372.0ms | (- (+ (* 0.5 re) (* 0.25 (* re (pow im 2)))) (* 0.5 (* re im))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 3.3s | 3025× | body | 1280 | valid |
| 2.4s | 2449× | body | 640 | valid |
| 2.0s | 8511× | body | 80 | valid |
| 625.0ms | 1199× | body | 320 | valid |
| 178.0ms | 596× | body | 160 | valid |