



Bits error versus x
Results
| Original | 39.8 |
|---|---|
| Target | 39.4 |
| Herbie | 0.7 |
if x < -0.0017805892718932015Initial program 0.0
rmApplied flip--0.0
Applied associate-/r/0.0
if -0.0017805892718932015 < x Initial program 60.1
Taylor expanded around 0 1.0
rmApplied add-cube-cbrt1.0
rmApplied add-exp-log1.0
rmApplied add-cube-cbrt1.0
Applied exp-prod1.0
Final simplification0.7
herbie shell --seed 1042149663
(FPCore (x)
:name "expq2 (section 3.11)"
:herbie-target
(/ 1 (- 1 (exp (- x))))
(/ (exp x) (- (exp x) 1)))
Time bar (total: 14.8s)Debug log
| 350× | (pre true 80) |
| 94× | (body real 80) |
| 92× | (body exit 10240) |
| 72× | (body real 1280) |
| 56× | (body real 640) |
| 22× | (body real 320) |
| 14× | (body real 160) |
| 9.0ms | (/ (exp x) (- (exp x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 39.2b
Found 2 expressions with local error:
| 3.5b | (- (exp x) 1) |
| 0.5b | (/ (exp x) (- (exp x) 1)) |
| 16× | add-sqr-sqrt |
| 12× | times-frac |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 5× | difference-of-sqr-1 |
| 4× | add-cbrt-cube |
| 4× | associate-/r* |
| 3× | associate-/l* |
| 3× | add-exp-log |
| 2× | add-log-exp |
| 2× | flip-- |
| 2× | associate-/r/ |
| 2× | flip3-- |
| 2× | pow1 |
| 1× | div-inv |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 13.0ms | (/ (exp x) (- (exp x) 1)) |
| 7.0ms | (- (exp x) 1) |
| 44.0ms | (/ (exp x) (- (exp x) 1)) |
| 40.0ms | (- (exp x) 1) |
| 421.0ms | (/ (* (* (exp x) (exp x)) (exp x)) (* (* (- (exp x) 1) (- (exp x) 1)) (- (exp x) 1))) |
| 164.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 68.0ms | (+ (* (exp x) (exp x)) (+ (* 1 1) (* (exp x) 1))) |
| 41.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (- (exp x) 1)) (cbrt (- (exp x) 1)))) |
| 22.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) 1) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.5b
Found 2 expressions with local error:
| 0.3b | (* 1/12 x) |
| 0.0b | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 4× | add-log-exp |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | add-sqr-sqrt |
| 1× | flip-+ |
| 1× | *-commutative |
| 1× | flip3-+ |
| 1× | sum-log |
| 1× | associate-+r+ |
| 1× | +-commutative |
| 15.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 0.0ms | (* 1/12 x) |
| 15.0ms | (* 1/12 x) |
| 15.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 56.0ms | (* (exp (* 1/12 x)) (exp (+ (/ 1 x) 1/2))) |
| 23.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 22.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 21.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 3.0ms | (* 1/12 x) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.5b
Found 4 expressions with local error:
| 0.5b | (cbrt (* 1/12 x)) |
| 0.5b | (cbrt (* 1/12 x)) |
| 0.5b | (cbrt (* 1/12 x)) |
| 0.5b | (* (cbrt (* 1/12 x)) (cbrt (* 1/12 x))) |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | cbrt-prod |
| 4× | add-log-exp |
| 4× | associate-*l* |
| 4× | associate-*r* |
| 4× | add-cbrt-cube |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 10.0ms | (* (cbrt (* 1/12 x)) (cbrt (* 1/12 x))) |
| 1.0ms | (cbrt (* 1/12 x)) |
| 1.0ms | (cbrt (* 1/12 x)) |
| 1.0ms | (cbrt (* 1/12 x)) |
| 578.0ms | (* (cbrt (* 1/12 x)) (cbrt (* 1/12 x))) |
| 499.0ms | (cbrt (* 1/12 x)) |
| 487.0ms | (cbrt (* 1/12 x)) |
| 485.0ms | (cbrt (* 1/12 x)) |
| 21.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt 1/12) 2)) |
| 21.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt -1/12) 2)) |
| 21.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt 1/12) 2)) |
| 18.0ms | (* (* 1/12 x) (* 1/12 x)) |
| 18.0ms | (* (* 1/12 x) (* 1/12 x)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.5b
Found 4 expressions with local error:
| 5.1b | (exp (log (* (cbrt (* 1/12 x)) (cbrt (* 1/12 x))))) |
| 0.5b | (cbrt (* 1/12 x)) |
| 0.5b | (cbrt (* 1/12 x)) |
| 0.5b | (cbrt (* 1/12 x)) |
| 10× | exp-prod |
| 10× | pow1 |
| 7× | log-pow |
| 7× | pow1/3 |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | cbrt-prod |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | rem-exp-log |
| 1× | exp-sum |
| 1× | pow-plus |
| 1× | log-prod |
| 1× | pow2 |
| 19.0ms | (exp (log (* (cbrt (* 1/12 x)) (cbrt (* 1/12 x))))) |
| 1.0ms | (cbrt (* 1/12 x)) |
| 1.0ms | (cbrt (* 1/12 x)) |
| 1.0ms | (cbrt (* 1/12 x)) |
| 590.0ms | (exp (log (* (cbrt (* 1/12 x)) (cbrt (* 1/12 x))))) |
| 495.0ms | (cbrt (* 1/12 x)) |
| 485.0ms | (cbrt (* 1/12 x)) |
| 483.0ms | (cbrt (* 1/12 x)) |
| 22.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt 1/12) 2)) |
| 21.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt -1/12) 2)) |
| 21.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt 1/12) 2)) |
| 12.0ms | (* (pow (* x -1) 1/3) (cbrt -1/12)) |
| 12.0ms | (* (pow (* x -1) 1/3) (cbrt -1/12)) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.5b
99% (0.2b remaining)
Error of 0.7b against oracle of 0.5b and baseline of 21.7b
| 10578× | (pre true 80) |
| 2903× | (body real 80) |
| 2578× | (body exit 10240) |
| 2260× | (body real 1280) |
| 1662× | (body real 640) |
| 774× | (body real 320) |
| 401× | (body real 160) |