


Bits error versus re



Bits error versus im
Results
Initial program 0.0
rmApplied add-sqr-sqrt0.0
Applied associate-*l*0.0
rmApplied add-sqr-sqrt0.0
Applied sqrt-prod0.0
Applied associate-*l*0.0
Final simplification0.0
herbie shell --seed 2019016
(FPCore (re im)
:name "math.exp on complex, imaginary part"
(* (exp re) (sin im)))
Time bar (total: 12.1s)Debug log
| 328× | (pre true 80) |
| 218× | (body real 80) |
| 53× | (body real 1280) |
| 31× | (body real 640) |
| 13× | (body real 320) |
| 13× | (body real 160) |
| 4.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)) |
| 43.0ms | (* (exp re) (sin im)) |
| 83.0ms | (+ (* 1/2 (* (pow re 2) im)) (+ (* re im) im)) |
| 48.0ms | (* (* (* (exp re) (exp re)) (exp re)) (* (* (sin im) (sin im)) (sin im))) |
| 2.0ms | (* (exp re) (sin im)) |
| 2.0ms | (+ re (log (sin im))) |
| 2.0ms | (* (sin im) (exp re)) |
6 alts after pruning (5 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 |
| 21.0ms | (* (sqrt (exp re)) (* (sqrt (exp re)) (sin im))) |
| 9.0ms | (* (sqrt (exp re)) (sin im)) |
| 1.0ms | (sqrt (exp re)) |
| 1.0ms | (sqrt (exp re)) |
| 68.0ms | (* (sqrt (exp re)) (sin im)) |
| 55.0ms | (* (sqrt (exp re)) (* (sqrt (exp re)) (sin im))) |
| 11.0ms | (sqrt (exp re)) |
| 11.0ms | (sqrt (exp re)) |
| 477.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)))) |
| 342.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)))) |
| 96.0ms | (+ (* 1/2 (* (pow re 2) im)) (+ (* re im) im)) |
| 87.0ms | (+ (* 1/8 (* (pow re 2) im)) (+ (* 1/2 (* re im)) im)) |
| 86.0ms | (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (sin im) (sin im)) (sin im))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im))) |
| 0.0b | (* (sqrt (sqrt (exp re))) (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im)))) |
| 0.0b | (* (sqrt (exp re)) (sin im)) |
| 0.0b | (sqrt (exp re)) |
| 24× | sqrt-prod |
| 24× | associate-*l* |
| 20× | add-exp-log |
| 20× | add-cbrt-cube |
| 20× | pow1 |
| 15× | add-sqr-sqrt |
| 14× | add-cube-cbrt |
| 14× | *-un-lft-identity |
| 10× | cbrt-unprod |
| 10× | prod-exp |
| 10× | pow-prod-down |
| 5× | associate-*r* |
| 4× | add-log-exp |
| 3× | *-commutative |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 35.0ms | (* (sqrt (sqrt (exp re))) (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im)))) |
| 22.0ms | (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im))) |
| 4.0ms | (* (sqrt (exp re)) (sin im)) |
| 1.0ms | (sqrt (exp re)) |
| 146.0ms | (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im))) |
| 52.0ms | (* (sqrt (exp re)) (sin im)) |
| 44.0ms | (* (sqrt (sqrt (exp re))) (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im)))) |
| 18.0ms | (sqrt (exp re)) |
| 460.0ms | (* (* (* (sqrt (sqrt (exp re))) (sqrt (sqrt (exp re)))) (sqrt (sqrt (exp re)))) (* (* (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im))) (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im)))) (* (sqrt (sqrt (exp re))) (* (sqrt (exp re)) (sin im))))) |
| 300.0ms | (* (* (* (sqrt (sqrt (exp re))) (sqrt (sqrt (exp re)))) (sqrt (sqrt (exp re)))) (* (* (* (sqrt (exp re)) (sin im)) (* (sqrt (exp re)) (sin im))) (* (sqrt (exp re)) (sin im)))) |
| 265.0ms | (* (* (* (sqrt (sqrt (exp re))) (sqrt (sqrt (exp re)))) (sqrt (sqrt (exp re)))) (* (* (* (sqrt (exp re)) (sqrt (exp re))) (sqrt (exp re))) (* (* (sin im) (sin im)) (sin im)))) |
| 120.0ms | (* (* (* (sqrt (sqrt (exp re))) (sqrt (sqrt (exp re)))) (sqrt (sqrt (exp re)))) (* (* (* (sqrt (sqrt (exp re))) (sqrt (sqrt (exp re)))) (sqrt (sqrt (exp re)))) (* (* (* (sqrt (exp re)) (sin im)) (* (sqrt (exp re)) (sin im))) (* (sqrt (exp re)) (sin im))))) |
| 118.0ms | (+ (* 1/2 (* (pow re 2) im)) (+ (* re im) im)) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.6b | (cbrt (sin im)) |
| 0.6b | (cbrt (sin im)) |
| 0.6b | (cbrt (sin im)) |
| 0.4b | (* (cbrt (sin im)) (cbrt (sin im))) |
| 15× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 9.0ms | (* (cbrt (sin im)) (cbrt (sin im))) |
| 1.0ms | (cbrt (sin im)) |
| 1.0ms | (cbrt (sin im)) |
| 1.0ms | (cbrt (sin im)) |
| 187.0ms | (cbrt (sin im)) |
| 168.0ms | (cbrt (sin im)) |
| 159.0ms | (* (cbrt (sin im)) (cbrt (sin im))) |
| 133.0ms | (cbrt (sin im)) |
| 87.0ms | (- (pow im 1/3) (+ (* 1/18 (pow (pow im 7) 1/3)) (* 1/3240 (pow (pow im 13) 1/3)))) |
| 86.0ms | (- (pow im 1/3) (+ (* 1/18 (pow (pow im 7) 1/3)) (* 1/3240 (pow (pow im 13) 1/3)))) |
| 51.0ms | (- (pow im 1/3) (+ (* 1/18 (pow (pow im 7) 1/3)) (* 1/3240 (pow (pow im 13) 1/3)))) |
| 34.0ms | (- (+ (* 1/405 (pow (pow im 14) 1/3)) (pow im 2/3)) (* 1/9 (pow (pow im 8) 1/3))) |
| 3.0ms | (pow (sin im) 1/3) |
4 alts after pruning (0 fresh and 4 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 10646× | (pre true 80) |
| 6939× | (body real 80) |
| 1533× | (body real 1280) |
| 1208× | (body real 640) |
| 660× | (body real 320) |
| 306× | (body real 160) |