



Bits error versus a




Bits error versus x
Results
| Original | 29.7 |
|---|---|
| Target | 0.2 |
| Herbie | 0.6 |
if (* a x) < -896.1920870623062Initial program 0
Taylor expanded around -inf 0
if -896.1920870623062 < (* a x) Initial program 44.3
Taylor expanded around 0 14.2
Simplified0.8
Final simplification0.6
herbie shell --seed 1137770271
(FPCore (a x)
:name "expax (section 3.5)"
:herbie-target
(if (< (fabs (* a x)) 1/10) (* (* a x) (+ 1 (+ (/ (* a x) 2) (/ (pow (* a x) 2) 6)))) (- (exp (* a x)) 1))
(- (exp (* a x)) 1))
Time bar (total: 12.0s)Debug log
| 87× | 54.0ms | (body real 1280) |
| 47× | 21.0ms | (body real 640) |
| 161× | 15.0ms | (body real 80) |
| 331× | 10.0ms | (pre true 80) |
| 20× | 6.0ms | (body real 320) |
| 16× | 3.0ms | (body real 160) |
| 11.0ms | (- (exp (* a x)) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 29.2b
Found 1 expressions with local error:
| 3.4b | (- (exp (* a 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 |
| 11.0ms | (- (exp (* a x)) 1) |
| 57.0ms | (- (exp (* a x)) 1) |
| 904.0ms | (+ (* 1/2 (* (pow a 2) (pow x 2))) (+ (* a x) (* 1/6 (* (pow a 3) (pow x 3))))) |
| 10.0ms | (- (exp (* a x)) 1) |
| 10.0ms | (- (exp (* a x)) 1) |
| 6.0ms | (+ (sqrt (exp (* a x))) 1) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* x 1/6) |
| 0.2b | (* (* a x) (* a x)) |
| 0.2b | (* a (* x 1/6)) |
| 0.0b | (* (* (* a x) (* a x)) (+ (* a (* x 1/6)) 1/2)) |
| 14× | pow1 |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 5× | add-cube-cbrt |
| 5× | associate-*r* |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | cbrt-unprod |
| 4× | *-commutative |
| 4× | prod-exp |
| 4× | pow-prod-down |
| 2× | associate-*r/ |
| 2× | associate-*l* |
| 1× | flip-+ |
| 1× | pow-prod-up |
| 1× | pow-plus |
| 1× | flip3-+ |
| 1× | distribute-lft-in |
| 1× | distribute-rgt-in |
| 1× | pow2 |
| 28.0ms | (* (* (* a x) (* a x)) (+ (* a (* x 1/6)) 1/2)) |
| 8.0ms | (* (* a x) (* a x)) |
| 2.0ms | (* a (* x 1/6)) |
| 0.0ms | (* x 1/6) |
| 93.0ms | (* (* (* a x) (* a x)) (+ (* a (* x 1/6)) 1/2)) |
| 38.0ms | (* (* a x) (* a x)) |
| 23.0ms | (* a (* x 1/6)) |
| 15.0ms | (* x 1/6) |
| 882.0ms | (* (* (* (* a x) (* a x)) (* a x)) (* (* (* a x) (* a x)) (* a x))) |
| 444.0ms | (+ (* 1/2 (* (pow a 2) (pow x 2))) (* 1/6 (* (pow a 3) (pow x 3)))) |
| 401.0ms | (+ (* 1/6 (* (pow a 3) (pow x 3))) (* 1/2 (* (pow a 2) (pow x 2)))) |
| 395.0ms | (+ (* 1/6 (* (pow a 3) (pow x 3))) (* 1/2 (* (pow a 2) (pow x 2)))) |
| 367.0ms | (* (* (* (* (* a x) (* a x)) (* (* a x) (* a x))) (* (* a x) (* a x))) (* (* (+ (* a (* x 1/6)) 1/2) (+ (* a (* x 1/6)) 1/2)) (+ (* a (* x 1/6)) 1/2))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 3.4b | (- (exp (* a 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 |
| 11.0ms | (- (exp (* a x)) 1) |
| 51.0ms | (- (exp (* a x)) 1) |
| 517.0ms | (+ (* 1/2 (* (pow a 2) (pow x 2))) (+ (* a x) (* 1/6 (* (pow a 3) (pow x 3))))) |
| 11.0ms | (- (exp (* a x)) 1) |
| 10.0ms | (- (exp (* a x)) 1) |
| 6.0ms | (+ (sqrt (exp (* a x))) 1) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0.0b
97.7% (0.5b remaining)
Error of 0.6b against oracle of 0.1b and baseline of 20.9b
| 2716× | 1.8s | (body real 1280) |
| 1327× | 613.0ms | (body real 640) |
| 5472× | 522.0ms | (body real 80) |
| 10666× | 285.0ms | (pre true 80) |
| 742× | 249.0ms | (body real 320) |
| 409× | 81.0ms | (body real 160) |