



Bits error versus x
Results
| Original | 29.7 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 29.7
Taylor expanded around 0 0.6
Final simplification0.6
herbie shell --seed 1137770271
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:herbie-target
(* 4 (pow (sinh (/ x 2)) 2))
(+ (- (exp x) 2) (exp (- x))))
Time bar (total: 1.7m)Debug log
| 180× | 144.0ms | (body real 1280) |
| 248× | 22.0ms | (body real 80) |
| 40× | 20.0ms | (body real 640) |
| 502× | 11.0ms | (pre true 80) |
| 23× | 8.0ms | (body real 320) |
| 11× | 2.0ms | (body real 160) |
| 42.0ms | (+ (- (exp x) 2) (exp (- x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 28.6b
Found 2 expressions with local error:
| 3.6b | (+ (- (exp x) 2) (exp (- x))) |
| 0.0b | (- (exp x) 2) |
| 4× | add-log-exp |
| 4× | frac-add |
| 4× | *-un-lft-identity |
| 3× | flip-- |
| 3× | flip3-- |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | exp-diff |
| 2× | add-cbrt-cube |
| 2× | sub-neg |
| 2× | associate-+l+ |
| 2× | pow1 |
| 2× | exp-neg |
| 2× | add-sqr-sqrt |
| 2× | neg-sub0 |
| 1× | distribute-lft-out |
| 1× | flip-+ |
| 1× | associate-+l- |
| 1× | flip3-+ |
| 1× | sum-log |
| 1× | +-commutative |
| 36.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 7.0ms | (- (exp x) 2) |
| 137.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 17.0ms | (- (exp x) 2) |
| 457.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp 0))) |
| 439.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) 1)) |
| 313.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) (exp 0))) |
| 211.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) 1)) |
| 139.0ms | (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp x)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.1b | (* 1/12 (pow x 4)) |
| 0.0b | (* 1/360 (pow x 6)) |
| 0.0b | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 0.0b | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 11× | add-log-exp |
| 8× | *-un-lft-identity |
| 6× | add-cube-cbrt |
| 6× | associate-*r* |
| 6× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | sum-log |
| 4× | pow1 |
| 2× | flip-+ |
| 2× | *-commutative |
| 2× | flip3-+ |
| 2× | +-commutative |
| 1× | distribute-lft-out |
| 1× | associate-+r+ |
| 16.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 8.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 3.0ms | (* 1/12 (pow x 4)) |
| 3.0ms | (* 1/360 (pow x 6)) |
| 114.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 49.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 43.0ms | (* 1/360 (pow x 6)) |
| 34.0ms | (* 1/12 (pow x 4)) |
| 70.0ms | (* (exp (pow x 2)) (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 68.0ms | (* (exp (pow x 2)) (* (exp (* 1/12 (pow x 4))) (exp (* 1/360 (pow x 6))))) |
| 30.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 29.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 28.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 18.0b | (cbrt (* (* (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 0.1b | (* (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 0.1b | (* 1/12 (pow x 4)) |
| 0.1b | (* 1/12 (pow x 4)) |
| 33× | flip-+ |
| 33× | flip3-+ |
| 32× | frac-times |
| 26× | cbrt-div |
| 16× | associate-*l/ |
| 12× | *-un-lft-identity |
| 10× | associate-*r/ |
| 10× | associate-*r* |
| 9× | pow1 |
| 8× | add-cube-cbrt |
| 8× | add-sqr-sqrt |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | associate-*l* |
| 3× | *-commutative |
| 2× | distribute-lft-out |
| 1× | cbrt-unprod |
| 1× | rem-cbrt-cube |
| 1× | pow-prod-up |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | pow3 |
| 1× | pow1/3 |
| 1× | pow-plus |
| 1× | distribute-lft-in |
| 1× | distribute-rgt-in |
| 1× | pow2 |
| 1× | cbrt-prod |
| 82.0ms | (cbrt (* (* (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 49.0ms | (* (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 3.0ms | (* 1/12 (pow x 4)) |
| 3.0ms | (* 1/12 (pow x 4)) |
| 59.0ms | (* (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 56.0ms | (cbrt (* (* (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 34.0ms | (* 1/12 (pow x 4)) |
| 34.0ms | (* 1/12 (pow x 4)) |
| 798.0ms | (* (- (* (pow x 2) (pow x 2)) (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) (- (* (pow x 2) (pow x 2)) (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 771.0ms | (* (+ (pow (pow x 2) 3) (pow (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) 3)) (+ (pow (pow x 2) 3) (pow (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) 3))) |
| 732.0ms | (* (+ (pow (pow x 2) 3) (pow (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) 3)) (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 613.0ms | (* (- (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (- (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 526.0ms | (+ (* (pow x 2) (pow x 2)) (- (* (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) (* (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 3.6b | (- (* (- (exp x) 2) (- (exp x) 2)) (* (exp (- x)) (exp (- x)))) |
| 0.0b | (* (- (exp x) 2) (- (exp x) 2)) |
| 0.0b | (* (exp (- x)) (exp (- x))) |
| 0.0b | (- (- (exp x) 2) (exp (- x))) |
| 76× | frac-sub |
| 76× | frac-times |
| 65× | exp-neg |
| 64× | flip-- |
| 64× | flip3-- |
| 56× | exp-diff |
| 56× | neg-sub0 |
| 38× | associate-*r/ |
| 38× | associate-*l/ |
| 16× | exp-prod |
| 14× | *-un-lft-identity |
| 14× | pow1 |
| 14× | add-sqr-sqrt |
| 12× | add-cube-cbrt |
| 9× | un-div-inv |
| 8× | add-log-exp |
| 8× | add-cbrt-cube |
| 7× | sub-neg |
| 6× | pow-prod-up |
| 6× | add-exp-log |
| 6× | associate--l+ |
| 6× | pow-prod-down |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | distribute-lft-in |
| 4× | neg-mul-1 |
| 4× | distribute-rgt-in |
| 2× | difference-of-squares |
| 2× | cbrt-unprod |
| 2× | *-commutative |
| 2× | prod-exp |
| 2× | diff-log |
| 2× | pow-plus |
| 2× | pow2 |
| 1× | distribute-lft-out-- |
| 1× | associate--l- |
| 49.0ms | (- (* (- (exp x) 2) (- (exp x) 2)) (* (exp (- x)) (exp (- x)))) |
| 42.0ms | (- (- (exp x) 2) (exp (- x))) |
| 32.0ms | (* (- (exp x) 2) (- (exp x) 2)) |
| 30.0ms | (* (exp (- x)) (exp (- x))) |
| 141.0ms | (- (* (- (exp x) 2) (- (exp x) 2)) (* (exp (- x)) (exp (- x)))) |
| 47.0ms | (- (- (exp x) 2) (exp (- x))) |
| 38.0ms | (* (- (exp x) 2) (- (exp x) 2)) |
| 25.0ms | (* (exp (- x)) (exp (- x))) |
| 1.2s | (* (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2)))) (* (exp x) (exp x))) |
| 1.0s | (- (* (* (- (* (exp x) (exp x)) (* 2 2)) (- (* (exp x) (exp x)) (* 2 2))) (exp x)) (* (* (+ (exp x) 2) (+ (exp x) 2)) (* (exp (- x)) (exp 0)))) |
| 995.0ms | (- (* (* (- (* (exp x) (exp x)) (* 2 2)) (- (* (exp x) (exp x)) (* 2 2))) (exp x)) (* (* (+ (exp x) 2) (+ (exp x) 2)) (* (exp (- x)) 1))) |
| 955.0ms | (- (* (* (- (exp x) 2) (- (* (exp x) (exp x)) (* 2 2))) (* (exp x) (exp x))) (* (+ (exp x) 2) (* 1 1))) |
| 954.0ms | (- (* (* (- (* (exp x) (exp x)) (* 2 2)) (- (exp x) 2)) (* (exp x) (exp x))) (* (+ (exp x) 2) (* 1 1))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
0% (0.4b remaining)
Error of 0.6b against oracle of 0.2b and baseline of 0.6b
| 5656× | 5.3s | (body real 1280) |
| 8219× | 813.0ms | (body real 80) |
| 1242× | 709.0ms | (body real 640) |
| 16060× | 336.0ms | (pre true 80) |
| 620× | 254.0ms | (body real 320) |
| 323× | 71.0ms | (body real 160) |