


Bits error versus re



Bits error versus im
Results
Initial program 0.0
Final simplification0.0
herbie shell --seed 2019018
(FPCore (re im)
:name "math.exp on complex, imaginary part"
(* (exp re) (sin im)))
Time bar (total: 9.8s)Debug log
| 26.0ms | 34× | body | 1280 | valid |
| 22.0ms | 221× | body | 80 | valid |
| 18.0ms | 36× | body | 640 | valid |
| 8.0ms | 22× | body | 320 | valid |
| 3.0ms | 13× | body | 160 | valid |
| 2.0ms | (* (exp re) (sin im)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (* (exp re) (sin im)) |
| 3× | add-cube-cbrt |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | add-cbrt-cube |
| 3× | *-un-lft-identity |
| 3× | pow1 |
| 3× | add-sqr-sqrt |
| 2× | add-exp-log |
| 1× | add-log-exp |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 4.0ms | (* (exp re) (sin im)) |
| 51.0ms | (* (exp re) (sin im)) |
| 109.0ms | (+ (* 1/2 (* (pow re 2) im)) (+ (* re im) im)) |
| 58.0ms | (* (* (* (exp re) (exp re)) (exp re)) (* (* (sin im) (sin im)) (sin im))) |
| 2.0ms | (* (sin im) (exp re)) |
| 2.0ms | (* (exp re) (sin im)) |
| 2.0ms | (+ re (log (sin im))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.0b | (* (sqrt (exp re)) (* (sqrt (exp re)) (sin im))) |
| 0.0b | (* (sqrt (exp re)) (sin im)) |
| 0.0b | (sqrt (exp re)) |
| 0.0b | (sqrt (exp re)) |
| 13× | add-sqr-sqrt |
| 12× | sqrt-prod |
| 12× | associate-*l* |
| 11× | add-cube-cbrt |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 11× | *-un-lft-identity |
| 11× | pow1 |
| 4× | add-log-exp |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | pow-prod-down |
| 4× | associate-*r* |
| 2× | *-commutative |
| 2× | pow1/2 |
| 2× | rem-sqrt-square |
| 13.0ms | (* (sqrt (exp re)) (* (sqrt (exp re)) (sin im))) |
| 4.0ms | (* (sqrt (exp re)) (sin im)) |
| 1.0ms | (sqrt (exp re)) |
| 1.0ms | (sqrt (exp re)) |
| 70.0ms | (* (sqrt (exp re)) (sin im)) |
| 59.0ms | (* (sqrt (exp re)) (* (sqrt (exp re)) (sin im))) |
| 21.0ms | (sqrt (exp re)) |
| 20.0ms | (sqrt (exp re)) |
| 490.0ms | (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (* (sqrt (exp re)) (sin im)) (* (sqrt (exp re)) (sin im))) (* (sqrt (exp re)) (sin im)))) |
| 311.0ms | (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (sin im) (sin im)) (sin im)))) |
| 142.0ms | (+ (* 1/8 (* (pow re 2) im)) (+ (* 1/2 (* re im)) im)) |
| 107.0ms | (+ (* 1/2 (* (pow re 2) im)) (+ (* re im) im)) |
| 71.0ms | (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (sin im) (sin im)) (sin im))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (cbrt (exp re)) |
| 0.0b | (cbrt (exp re)) |
| 0.0b | (* (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re)))) (* (sqrt (exp re)) (sin im))) |
| 0.0b | (* (sqrt (exp re)) (sin im)) |
| 18× | add-exp-log |
| 18× | add-cbrt-cube |
| 18× | pow1 |
| 9× | cbrt-unprod |
| 9× | add-cube-cbrt |
| 9× | prod-exp |
| 9× | pow-prod-down |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 7× | associate-*l* |
| 6× | cbrt-prod |
| 4× | add-log-exp |
| 4× | associate-*r* |
| 3× | sqrt-prod |
| 2× | *-commutative |
| 2× | pow1/3 |
| 22.0ms | (* (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re)))) (* (sqrt (exp re)) (sin im))) |
| 7.0ms | (* (sqrt (exp re)) (sin im)) |
| 1.0ms | (cbrt (exp re)) |
| 1.0ms | (cbrt (exp re)) |
| 154.0ms | (* (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re)))) (* (sqrt (exp re)) (sin im))) |
| 146.0ms | (cbrt (exp re)) |
| 126.0ms | (cbrt (exp re)) |
| 69.0ms | (* (sqrt (exp re)) (sin im)) |
| 681.0ms | (* (* (* (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re)))) (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re))))) (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re))))) (* (* (* (sqrt (exp re)) (sin im)) (* (sqrt (exp re)) (sin im))) (* (sqrt (exp re)) (sin im)))) |
| 363.0ms | (+ (* 2/9 (* (pow re 2) (* (fabs (pow (exp re) 1/3)) im))) (+ (* 2/3 (* re (* (fabs (pow (exp re) 1/3)) im))) (* (fabs (pow (exp re) 1/3)) im))) |
| 124.0ms | (* (* (* (* (fabs (cbrt (exp re))) (fabs (cbrt (exp re)))) (fabs (cbrt (exp re)))) (* (* (sqrt (cbrt (exp re))) (sqrt (cbrt (exp re)))) (sqrt (cbrt (exp re))))) (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (sin im) (sin im)) (sin im)))) |
| 111.0ms | (* (* (* (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re)))) (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re))))) (* (fabs (cbrt (exp re))) (sqrt (cbrt (exp re))))) (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (sin im) (sin im)) (sin im)))) |
| 107.0ms | (+ (* 1/8 (* (pow re 2) im)) (+ (* 1/2 (* re 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
| 1.5s | 1493× | body | 1280 | valid |
| 725.0ms | 6967× | body | 80 | valid |
| 596.0ms | 1208× | body | 640 | valid |
| 222.0ms | 621× | body | 320 | valid |
| 93.0ms | 297× | body | 160 | valid |