



Bits error versus x
Results
| Original | 58.8 |
|---|---|
| Target | 0.5 |
| Herbie | 0.4 |
Initial program 58.8
Taylor expanded around 0 0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019016
(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: 3.5s)Debug log
| 366× | (pre true 80) |
| 112× | (body real 1280) |
| 110× | (body real 80) |
| 79× | (body real 640) |
| 44× | (body real 320) |
| 21× | (body real 160) |
| 3.0ms | (- (exp x) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 59.6b
Found 1 expressions with local error:
| 6.0b | (- (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) |
| 12.0ms | (- (exp x) 1) |
| 84.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 3.0ms | (- (exp x) 1) |
| 3.0ms | (- (exp x) 1) |
| 2.0ms | (+ (sqrt (exp x)) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.3b | (* x 1/6) |
| 0.0b | (* (+ (* x 1/6) 1/2) (* x x)) |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | add-cube-cbrt |
| 3× | associate-*l* |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | *-commutative |
| 2× | associate-*l/ |
| 1× | flip-+ |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*r* |
| 1× | flip3-+ |
| 5.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 0.0ms | (* x 1/6) |
| 29.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 8.0ms | (* x 1/6) |
| 470.0ms | (* (- (* (* x 1/6) (* x 1/6)) (* 1/2 1/2)) (* x x)) |
| 300.0ms | (* (+ (pow (* x 1/6) 3) (pow 1/2 3)) (* x x)) |
| 69.0ms | (* (* (* (+ (* x 1/6) 1/2) (+ (* x 1/6) 1/2)) (+ (* x 1/6) 1/2)) (* (* (* x x) (* x x)) (* x x))) |
| 44.0ms | (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2))) |
| 31.0ms | (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2))) |
1 alts after pruning (0 fresh and 1 done)
Merged error: 0b
| 11928× | (pre true 80) |
| 4111× | (body real 80) |
| 3468× | (body real 1280) |
| 2488× | (body real 640) |
| 1225× | (body real 320) |
| 636× | (body real 160) |