



Bits error versus x
Results
| Original | 29.8 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 29.8
Taylor expanded around 0 0.6
rmApplied add-sqr-sqrt0.6
Final simplification0.6
herbie shell --seed 2019022
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:herbie-target
(* 4 (pow (sinh (/ x 2)) 2))
(+ (- (exp x) 2) (exp (- x))))
Time bar (total: 12.5s)Debug log
| 120.0ms | 188× | body | 1280 | valid |
| 14.0ms | 246× | body | 80 | valid |
| 11.0ms | 30× | body | 640 | valid |
| 5.0ms | 24× | body | 320 | valid |
| 1.0ms | 7× | body | 160 | valid |
| 27.0ms | (+ (- (exp x) 2) (exp (- x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 27.1b
Found 2 expressions with local error:
| 4.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 |
| 41.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 6.0ms | (- (exp x) 2) |
| 103.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 13.0ms | (- (exp x) 2) |
| 296.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp 0))) |
| 252.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) 1)) |
| 197.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) (exp 0))) |
| 190.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) 1)) |
| 115.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.1b | (* 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+ |
| 17.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 6.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 2.0ms | (* 1/12 (pow x 4)) |
| 2.0ms | (* 1/360 (pow x 6)) |
| 55.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 35.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 28.0ms | (* 1/12 (pow x 4)) |
| 24.0ms | (* 1/360 (pow x 6)) |
| 41.0ms | (* (exp (pow x 2)) (exp (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 30.0ms | (* (exp (pow x 2)) (* (exp (* 1/12 (pow x 4))) (exp (* 1/360 (pow x 6))))) |
| 21.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 21.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 18.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 30.5b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 30.5b | (sqrt (+ (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)) |
| 12× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 8× | sqrt-prod |
| 8× | add-cube-cbrt |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | sqrt-div |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 2× | distribute-lft-out |
| 2× | flip-+ |
| 2× | *-commutative |
| 2× | pow1/2 |
| 2× | flip3-+ |
| 2× | rem-sqrt-square |
| 11.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 10.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 1.0ms | (* 1/12 (pow x 4)) |
| 1.0ms | (* 1/12 (pow x 4)) |
| 44.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 43.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 17.0ms | (* 1/12 (pow x 4)) |
| 15.0ms | (* 1/12 (pow x 4)) |
| 308.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
| 263.0ms | (- (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x))) (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360)))))) |
| 242.0ms | (- (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x))) (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360)))))) |
| 239.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
| 173.0ms | (sqrt (- (* (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)))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.8b | (log (exp (* 1/360 (pow x 6)))) |
| 0.1b | (* 1/12 (pow x 4)) |
| 0.1b | (exp (* 1/360 (pow x 6))) |
| 0.1b | (* 1/360 (pow x 6)) |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | associate-*r* |
| 5× | add-log-exp |
| 5× | pow1 |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | log-prod |
| 2× | *-commutative |
| 2× | log-pow |
| 2× | exp-prod |
| 1× | rem-exp-log |
| 1× | rem-log-exp |
| 3.0ms | (exp (* 1/360 (pow x 6))) |
| 3.0ms | (log (exp (* 1/360 (pow x 6)))) |
| 2.0ms | (* 1/12 (pow x 4)) |
| 2.0ms | (* 1/360 (pow x 6)) |
| 370.0ms | (exp (* 1/360 (pow x 6))) |
| 25.0ms | (log (exp (* 1/360 (pow x 6)))) |
| 22.0ms | (* 1/360 (pow x 6)) |
| 17.0ms | (* 1/12 (pow x 4)) |
| 11.0ms | (+ 1 (+ (* 1/360 (pow x 6)) (* 1/259200 (pow x 12)))) |
| 8.0ms | (log (* (cbrt (exp (* 1/360 (pow x 6)))) (cbrt (exp (* 1/360 (pow x 6)))))) |
| 7.0ms | (log (sqrt (exp (* 1/360 (pow x 6))))) |
| 3.0ms | (exp (* 1/360 (pow x 6))) |
| 3.0ms | (exp (* 1/360 (pow x 6))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
0% (0.6b remaining)
Error of 0.6b against oracle of 0.0b and baseline of 0.6b
| 3.9s | 5636× | body | 1280 | valid |
| 585.0ms | 7995× | body | 80 | valid |
| 485.0ms | 1279× | body | 640 | valid |
| 134.0ms | 624× | body | 320 | valid |
| 39.0ms | 288× | body | 160 | valid |