



Bits error versus x
Results
| Original | 58.6 |
|---|---|
| Target | 0.5 |
| Herbie | 0.5 |
Initial program 58.6
Taylor expanded around 0 0.5
Simplified0.5
Final simplification0.5
herbie shell --seed 2019022
(FPCore (x)
:name "expm1 (example 3.7)"
:pre (< -0.00017 x)
:herbie-target
(* x (+ (+ 1 (/ x 2)) (/ (* x x) 6)))
(- (exp x) 1))
Time bar (total: 9.0s)Debug log
| 37.0ms | 109× | body | 1280 | valid |
| 18.0ms | 77× | body | 640 | valid |
| 13.0ms | 131× | body | 80 | valid |
| 10.0ms | 379× | pre | 80 | true |
| 6.0ms | 40× | body | 320 | valid |
| 2.0ms | 22× | body | 160 | valid |
| 3.0ms | (- (exp x) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 58.3b
Found 1 expressions with local error:
| 6.3b | (- (exp x) 1) |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | difference-of-sqr-1 |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | *-un-lft-identity |
| 1× | sub-neg |
| 1× | pow1 |
| 3.0ms | (- (exp x) 1) |
| 15.0ms | (- (exp x) 1) |
| 111.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 6.0ms | (- (exp x) 1) |
| 5.0ms | (- (exp x) 1) |
| 3.0ms | (+ (sqrt (exp x)) 1) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.3b | (* x 1/6) |
| 0.0b | (* (+ (* x 1/6) 1/2) (* x x)) |
| 0.0b | (+ x (* (+ (* x 1/6) 1/2) (* x x))) |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 5× | pow1 |
| 4× | add-cube-cbrt |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | add-log-exp |
| 3× | associate-*l* |
| 2× | flip-+ |
| 2× | *-commutative |
| 2× | associate-*l/ |
| 2× | flip3-+ |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*r* |
| 1× | +-commutative |
| 7.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 4.0ms | (+ x (* (+ (* x 1/6) 1/2) (* x x))) |
| 0.0ms | (* x 1/6) |
| 38.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 16.0ms | (+ x (* (+ (* x 1/6) 1/2) (* x x))) |
| 12.0ms | (* x 1/6) |
| 372.0ms | (* (- (* (* x 1/6) (* x 1/6)) (* 1/2 1/2)) (* x x)) |
| 315.0ms | (* (+ (pow (* x 1/6) 3) (pow 1/2 3)) (* x x)) |
| 128.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 95.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 92.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 6.1b | (- (* (exp x) (exp x)) (* 1 1)) |
| 0.3b | (/ (- (* (exp x) (exp x)) (* 1 1)) (+ (exp x) 1)) |
| 0.0b | (* (exp x) (exp x)) |
| 0.0b | (+ (exp x) 1) |
| 15× | add-cube-cbrt |
| 15× | *-un-lft-identity |
| 15× | add-sqr-sqrt |
| 12× | times-frac |
| 9× | pow1 |
| 8× | add-cbrt-cube |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 5× | difference-of-squares |
| 4× | associate-/l* |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | div-exp |
| 1× | div-sub |
| 1× | diff-log |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | pow2 |
| 24.0ms | (/ (- (* (exp x) (exp x)) (* 1 1)) (+ (exp x) 1)) |
| 10.0ms | (- (* (exp x) (exp x)) (* 1 1)) |
| 6.0ms | (* (exp x) (exp x)) |
| 4.0ms | (+ (exp x) 1) |
| 36.0ms | (/ (- (* (exp x) (exp x)) (* 1 1)) (+ (exp x) 1)) |
| 23.0ms | (- (* (exp x) (exp x)) (* 1 1)) |
| 9.0ms | (* (exp x) (exp x)) |
| 6.0ms | (+ (exp x) 1) |
| 510.0ms | (/ (* (* (- (* (exp x) (exp x)) (* 1 1)) (- (* (exp x) (exp x)) (* 1 1))) (- (* (exp x) (exp x)) (* 1 1))) (* (* (+ (exp x) 1) (+ (exp x) 1)) (+ (exp x) 1))) |
| 130.0ms | (+ (* 2 x) (+ (* 4/3 (pow x 3)) (* 2 (pow x 2)))) |
| 92.0ms | (+ (* (exp x) (exp x)) (- (* 1 1) (* (exp x) 1))) |
| 89.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 83.0ms | (- (pow (* (exp x) (exp x)) 3) (pow (* 1 1) 3)) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 6.3b | (+ (exp (+ x x)) -1) |
| 1.0b | (cbrt (+ (exp x) 1)) |
| 1.0b | (cbrt (+ (exp x) 1)) |
| 1.0b | (cbrt (+ (exp x) 1)) |
| 9× | cbrt-prod |
| 8× | add-sqr-sqrt |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 6× | cbrt-div |
| 4× | add-log-exp |
| 4× | flip-+ |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-+ |
| 4× | pow1 |
| 3× | pow1/3 |
| 2× | difference-of-sqr--1 |
| 1× | exp-sum |
| 1× | +-commutative |
| 4.0ms | (+ (exp (+ x x)) -1) |
| 2.0ms | (cbrt (+ (exp x) 1)) |
| 2.0ms | (cbrt (+ (exp x) 1)) |
| 2.0ms | (cbrt (+ (exp x) 1)) |
| 145.0ms | (cbrt (+ (exp x) 1)) |
| 121.0ms | (cbrt (+ (exp x) 1)) |
| 118.0ms | (cbrt (+ (exp x) 1)) |
| 20.0ms | (+ (exp (+ x x)) -1) |
| 143.0ms | (+ (* 2 x) (+ (* 4/3 (pow x 3)) (* 2 (pow x 2)))) |
| 131.0ms | (+ (* 1/18 (* (pow x 2) (pow 2 1/3))) (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3))) |
| 122.0ms | (+ (* 1/18 (* (pow x 2) (pow 2 1/3))) (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3))) |
| 117.0ms | (+ (* 1/18 (* (pow x 2) (pow 2 1/3))) (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3))) |
| 50.0ms | (cbrt (- (* (exp x) (exp x)) (* 1 1))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
0% (0.5b remaining)
Error of 0.5b against oracle of 0.1b and baseline of 0.5b
| 1.4s | 3428× | body | 1280 | valid |
| 438.0ms | 2495× | body | 640 | valid |
| 278.0ms | 11963× | pre | 80 | true |
| 176.0ms | 1269× | body | 320 | valid |
| 120.0ms | 4164× | body | 80 | valid |
| 47.0ms | 607× | body | 160 | valid |