



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 1042149663
(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: 6.1s)Debug log
| 421× | (pre true 80) |
| 169× | (body real 80) |
| 108× | (body real 1280) |
| 84× | (body real 640) |
| 38× | (body real 320) |
| 22× | (body real 160) |
| 8.0ms | (- (exp x) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 58.8b
Found 1 expressions with local error:
| 5.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 |
| 6.0ms | (- (exp x) 1) |
| 23.0ms | (- (exp x) 1) |
| 167.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 8.0ms | (- (exp x) 1) |
| 7.0ms | (- (exp x) 1) |
| 4.0ms | (+ (sqrt (exp x)) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.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-+ |
| 13.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 0.0ms | (* x 1/6) |
| 57.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 18.0ms | (* x 1/6) |
| 630.0ms | (* (- (* (* x 1/6) (* x 1/6)) (* 1/2 1/2)) (* x x)) |
| 552.0ms | (* (+ (pow (* x 1/6) 3) (pow 1/2 3)) (* x x)) |
| 153.0ms | (* (* (* (+ (* x 1/6) 1/2) (+ (* x 1/6) 1/2)) (+ (* x 1/6) 1/2)) (* (* (* x x) (* x x)) (* x x))) |
| 72.0ms | (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2))) |
| 69.0ms | (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2))) |
1 alts after pruning (0 fresh and 1 done)
Merged error: 0.0b
| 11862× | (pre true 80) |
| 4045× | (body real 80) |
| 3454× | (body real 1280) |
| 2512× | (body real 640) |
| 1216× | (body real 320) |
| 635× | (body real 160) |