



Bits error versus x
Results
| Original | 29.4 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 29.4
Taylor expanded around 0 0.6
rmApplied add-sqr-sqrt0.6
Final simplification0.6
herbie shell --seed 323378853
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:herbie-target
(* 4 (pow (sinh (/ x 2)) 2))
(+ (- (exp x) 2) (exp (- x))))
Time bar (total: 26.5s)Debug log
| 140.0ms | 180× | body | 1280 | valid |
| 25.0ms | 285× | body | 80 | valid |
| 22.0ms | 45× | body | 640 | valid |
| 5.0ms | 15× | body | 320 | valid |
| 2.0ms | 11× | body | 160 | valid |
| 67.0ms | (+ (- (exp x) 2) (exp (- x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 29.5b
Found 2 expressions with local error:
| 5.3b | (+ (- (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 |
| 30.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 6.0ms | (- (exp x) 2) |
| 131.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 17.0ms | (- (exp x) 2) |
| 445.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp 0))) |
| 429.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) 1)) |
| 303.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) (exp 0))) |
| 208.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) 1)) |
| 133.0ms | (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp x)) |
4 alts after pruning (4 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 | (+ (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+ |
| 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)) |
| 109.0ms | (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))) |
| 48.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 46.0ms | (* 1/360 (pow x 6)) |
| 33.0ms | (* 1/12 (pow x 4)) |
| 67.0ms | (* (exp (pow x 2)) (* (exp (* 1/12 (pow x 4))) (exp (* 1/360 (pow x 6))))) |
| 66.0ms | (* (exp (pow x 2)) (exp (+ (* 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)))) |
| 28.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 27.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 28.6b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 28.6b | (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 |
| 19.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 18.0ms | (sqrt (+ (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)) |
| 87.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 84.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 33.0ms | (* 1/12 (pow x 4)) |
| 32.0ms | (* 1/12 (pow x 4)) |
| 417.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)))) |
| 411.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)))) |
| 372.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)))))) |
| 371.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)))))) |
| 263.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)))))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 29.6b | (cbrt (+ (+ (* (pow x 6) 1/360) (* x x)) (* 1/12 (pow x 4)))) |
| 29.6b | (cbrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 28.6b | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 0.3b | (* (fabs (cbrt (+ (+ (* (pow x 6) 1/360) (* x x)) (* 1/12 (pow x 4))))) (sqrt (cbrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))) |
| 17× | *-un-lft-identity |
| 12× | add-sqr-sqrt |
| 11× | sqrt-prod |
| 11× | add-cube-cbrt |
| 11× | cbrt-prod |
| 10× | associate-*r* |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | cbrt-div |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | flip-+ |
| 4× | sqrt-div |
| 4× | flip3-+ |
| 3× | distribute-lft-out |
| 3× | associate-*l* |
| 2× | associate-*r/ |
| 2× | pow1/3 |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 29.0ms | (* (fabs (cbrt (+ (+ (* (pow x 6) 1/360) (* x x)) (* 1/12 (pow x 4))))) (sqrt (cbrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))) |
| 18.0ms | (cbrt (+ (+ (* (pow x 6) 1/360) (* x x)) (* 1/12 (pow x 4)))) |
| 18.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 10.0ms | (cbrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 250.0ms | (* (fabs (cbrt (+ (+ (* (pow x 6) 1/360) (* x x)) (* 1/12 (pow x 4))))) (sqrt (cbrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))))) |
| 215.0ms | (cbrt (+ (+ (* (pow x 6) 1/360) (* x x)) (* 1/12 (pow x 4)))) |
| 215.0ms | (cbrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 85.0ms | (sqrt (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6))))) |
| 786.0ms | (+ (* 10 (/ (exp (* 1/3 (- (log 1/360) (* 6 (log (/ 1 x)))))) (pow x 2))) (+ (exp (* 1/3 (- (log 1/360) (* 6 (log (/ 1 x)))))) (* 20 (/ (exp (* 1/3 (- (log 1/360) (* 6 (log (/ 1 x)))))) (pow x 4))))) |
| 783.0ms | (+ (* 10 (/ (exp (* 1/3 (- (log 1/360) (* 6 (log (/ 1 x)))))) (pow x 2))) (+ (exp (* 1/3 (- (log 1/360) (* 6 (log (/ 1 x)))))) (* 20 (/ (exp (* 1/3 (- (log 1/360) (* 6 (log (/ 1 x)))))) (pow x 4))))) |
| 499.0ms | (sqrt (cbrt (+ (* (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)))))))) |
| 411.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)))) |
| 374.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)))))) |
6 alts after pruning (4 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
| 5.2s | 5743× | body | 1280 | valid |
| 742.0ms | 8077× | body | 80 | valid |
| 705.0ms | 1174× | body | 640 | valid |
| 230.0ms | 608× | body | 320 | valid |
| 69.0ms | 311× | body | 160 | valid |