



Bits error versus x
Results
| Original | 29.9 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 29.9
Taylor expanded around 0 0.6
Final simplification0.6
herbie shell --seed 2019016
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:herbie-target
(* 4 (pow (sinh (/ x 2)) 2))
(+ (- (exp x) 2) (exp (- x))))
Time bar (total: 11.7s)Debug log
| 525× | (pre true 80) |
| 273× | (body real 80) |
| 177× | (body real 1280) |
| 43× | (body real 640) |
| 23× | (body real 320) |
| 9× | (body real 160) |
| 19.0ms | (+ (- (exp x) 2) (exp (- x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.0b
Found 2 expressions with local error:
| 2.4b | (+ (- (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 |
| 17.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 3.0ms | (- (exp x) 2) |
| 93.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 18.0ms | (- (exp x) 2) |
| 275.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp 0))) |
| 260.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) 1)) |
| 228.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) (exp 0))) |
| 149.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) 1)) |
| 104.0ms | (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp x)) |
3 alts after pruning (3 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 | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 0.0b | (+ (* 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+ |
| 7.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 4.0ms | (* 1/12 (pow x 4)) |
| 3.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 1.0ms | (* 1/360 (pow x 6)) |
| 57.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 41.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 34.0ms | (* 1/360 (pow x 6)) |
| 26.0ms | (* 1/12 (pow x 4)) |
| 55.0ms | (* (exp (pow x 2)) (* (exp (* 1/12 (pow x 4))) (exp (* 1/360 (pow x 6))))) |
| 32.0ms | (* (exp (pow x 2)) (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 26.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 25.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 20.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
5 alts after pruning (4 fresh and 1 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 | (+ (pow x 2) (* 1/12 (pow x 4))) |
| 0.0b | (+ (+ (pow x 2) (* 1/12 (pow x 4))) (* 1/360 (pow x 6))) |
| 11× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | associate-*r* |
| 6× | *-un-lft-identity |
| 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× | associate-+l+ |
| 12.0ms | (+ (+ (pow x 2) (* 1/12 (pow x 4))) (* 1/360 (pow x 6))) |
| 5.0ms | (+ (pow x 2) (* 1/12 (pow x 4))) |
| 1.0ms | (* 1/12 (pow x 4)) |
| 1.0ms | (* 1/360 (pow x 6)) |
| 46.0ms | (+ (pow x 2) (* 1/12 (pow x 4))) |
| 35.0ms | (+ (+ (pow x 2) (* 1/12 (pow x 4))) (* 1/360 (pow x 6))) |
| 33.0ms | (* 1/360 (pow x 6)) |
| 15.0ms | (* 1/12 (pow x 4)) |
| 59.0ms | (* (* (exp (pow x 2)) (exp (* 1/12 (pow x 4)))) (exp (* 1/360 (pow x 6)))) |
| 44.0ms | (* (exp (+ (pow x 2) (* 1/12 (pow x 4)))) (exp (* 1/360 (pow x 6)))) |
| 25.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 15.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 15.0ms | (* (exp (pow x 2)) (exp (* 1/12 (pow x 4)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 2.7b | (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 0.1b | (* 1/12 (pow x 4)) |
| 0.0b | (* 1/360 (pow x 6)) |
| 0.0b | (+ (pow x 2) (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 12× | *-un-lft-identity |
| 9× | add-cube-cbrt |
| 9× | add-sqr-sqrt |
| 8× | log-prod |
| 6× | associate-*r* |
| 6× | pow1 |
| 5× | add-log-exp |
| 5× | log-pow |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | associate-+r+ |
| 3× | exp-prod |
| 2× | distribute-lft-out |
| 2× | *-commutative |
| 2× | exp-sum |
| 1× | flip-+ |
| 1× | rem-log-exp |
| 1× | flip3-+ |
| 1× | sum-log |
| 1× | +-commutative |
| 31.0ms | (+ (pow x 2) (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 13.0ms | (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 2.0ms | (* 1/360 (pow x 6)) |
| 2.0ms | (* 1/12 (pow x 4)) |
| 97.0ms | (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 41.0ms | (+ (pow x 2) (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 36.0ms | (* 1/360 (pow x 6)) |
| 27.0ms | (* 1/12 (pow x 4)) |
| 82.0ms | (+ (pow x 2) (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 77.0ms | (+ (pow x 2) (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))))) |
| 61.0ms | (* (exp (pow x 2)) (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 35.0ms | (log (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 26.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.0b
0% (0.6b remaining)
Error of 0.6b against oracle of 0.0b and baseline of 0.6b
| 15887× | (pre true 80) |
| 8062× | (body real 80) |
| 5620× | (body real 1280) |
| 1271× | (body real 640) |
| 588× | (body real 320) |
| 346× | (body real 160) |