



Bits error versus x
Results
| Original | 40.5 |
|---|---|
| Target | 40.1 |
| Herbie | 0.5 |
Initial program 40.5
Simplified0.5
rmApplied clear-num0.5
rmApplied div-inv0.5
Final simplification0.5
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x)
:name "expq2 (section 3.11)"
:herbie-target
(/ 1 (- 1 (exp (- x))))
(/ (exp x) (- (exp x) 1)))
Time bar (total: 7.4s)Debug log
| 32.0ms | 81× | body | 1280 | valid |
| 30.0ms | 85× | body | 10240 | exit |
| 14.0ms | 51× | body | 640 | valid |
| 5.0ms | 26× | body | 320 | valid |
| 4.0ms | 89× | body | 80 | valid |
| 1.0ms | 10× | body | 160 | valid |
| 3.0ms | (/ (exp x) (- (exp x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.0b
Found 1 expressions with local error:
| 1.0b | (/ (exp x) (expm1 x)) |
| 9× | add-cube-cbrt |
| 9× | times-frac |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 3× | associate-/l* |
| 3× | add-cbrt-cube |
| 3× | associate-/r* |
| 2× | add-exp-log |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 4.0ms | (/ (exp x) (expm1 x)) |
| 22.0ms | (/ (exp x) (expm1 x)) |
| 150.0ms | (/ (* (* (exp x) (exp x)) (exp x)) (* (* (expm1 x) (expm1 x)) (expm1 x))) |
| 29.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (expm1 x)) (cbrt (expm1 x)))) |
| 19.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) 1) |
| 12.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (sqrt (expm1 x))) |
| 12.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.9b
Found 2 expressions with local error:
| 1.0b | (/ (expm1 x) (exp x)) |
| 0.0b | (/ 1 (/ (expm1 x) (exp x))) |
| 18× | times-frac |
| 17× | add-cube-cbrt |
| 17× | *-un-lft-identity |
| 17× | add-sqr-sqrt |
| 16× | associate-/r* |
| 5× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate-/l* |
| 3× | div-inv |
| 3× | pow1 |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | div-exp |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 2× | expm1-log1p-u |
| 1× | expm1-udef |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | associate-/r/ |
| 1× | div-sub |
| 1× | cbrt-undiv |
| 7.0ms | (/ (expm1 x) (exp x)) |
| 3.0ms | (/ 1 (/ (expm1 x) (exp x))) |
| 37.0ms | (/ (expm1 x) (exp x)) |
| 28.0ms | (/ 1 (/ (expm1 x) (exp x))) |
| 273.0ms | (- (+ x (* 1/6 (pow x 3))) (* 1/2 (pow x 2))) |
| 153.0ms | (/ (* (* (expm1 x) (expm1 x)) (expm1 x)) (* (* (exp x) (exp x)) (exp x))) |
| 29.0ms | (/ (* (cbrt (expm1 x)) (cbrt (expm1 x))) (* (cbrt (exp x)) (cbrt (exp x)))) |
| 14.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 9.0ms | (/ (* (cbrt (expm1 x)) (cbrt (expm1 x))) 1) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 1.0b | (* (expm1 x) (/ 1 (exp x))) |
| 0.0b | (/ 1 (* (expm1 x) (/ 1 (exp x)))) |
| 9× | add-exp-log |
| 7× | pow1 |
| 5× | rec-exp |
| 4× | add-cube-cbrt |
| 4× | prod-exp |
| 4× | associate-*r* |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | associate-*l* |
| 2× | add-log-exp |
| 2× | pow-flip |
| 2× | div-inv |
| 2× | log1p-expm1-u |
| 2× | un-div-inv |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | pow-prod-down |
| 2× | expm1-log1p-u |
| 1× | inv-pow |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 8.0ms | (* (expm1 x) (/ 1 (exp x))) |
| 6.0ms | (/ 1 (* (expm1 x) (/ 1 (exp x)))) |
| 36.0ms | (/ 1 (* (expm1 x) (/ 1 (exp x)))) |
| 34.0ms | (* (expm1 x) (/ 1 (exp x))) |
| 387.0ms | (* (* (* (expm1 x) (expm1 x)) (expm1 x)) (* (* (/ 1 (exp x)) (/ 1 (exp x))) (/ 1 (exp x)))) |
| 294.0ms | (- (+ x (* 1/6 (pow x 3))) (* 1/2 (pow x 2))) |
| 20.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 14.0ms | (* (expm1 x) (/ 1 (exp x))) |
| 8.0ms | (/ (- (exp x) 1) (exp x)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 1 expressions with local error:
| 1.0b | (/ (exp x) (expm1 x)) |
| 9× | add-cube-cbrt |
| 9× | times-frac |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 3× | associate-/l* |
| 3× | add-cbrt-cube |
| 3× | associate-/r* |
| 2× | add-exp-log |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 6.0ms | (/ (exp x) (expm1 x)) |
| 35.0ms | (/ (exp x) (expm1 x)) |
| 120.0ms | (/ (* (* (exp x) (exp x)) (exp x)) (* (* (expm1 x) (expm1 x)) (expm1 x))) |
| 28.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (expm1 x)) (cbrt (expm1 x)))) |
| 21.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) 1) |
| 18.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 12.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (sqrt (expm1 x))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.0b and baseline of 0.5b
| 1.4s | 2600× | body | 10240 | exit |
| 1.1s | 2250× | body | 1280 | valid |
| 544.0ms | 1685× | body | 640 | valid |
| 172.0ms | 883× | body | 320 | valid |
| 166.0ms | 2806× | body | 80 | valid |
| 47.0ms | 379× | body | 160 | valid |