



Bits error versus x
| Original | 29.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.7 |
Initial program 29.0
Taylor expanded around 0 0.7
Simplified0.7
rmApplied add-sqr-sqrt0.7
Final simplification0.7
herbie shell --seed 2019008 +o rules:numerics
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:herbie-target
(* 4 (pow (sinh (/ x 2)) 2))
(+ (- (exp x) 2) (exp (- x))))
Time bar (total: 17.8s)Debug log
1 calls. Slowest were:
| 29.0ms | (+ (- (exp x) 2) (exp (- x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 32.3b
Found 2 expressions with local error:
| 4.4b | (+ (- (exp x) 2) (exp (- x))) |
| 0.0b | (- (exp x) 2) |
2 calls. Slowest were:
| 16.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 3.0ms | (- (exp x) 2) |
2 calls. Slowest were:
| 77.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 9.0ms | (- (exp x) 2) |
23 calls. Slowest were:
| 324.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp 0))) |
| 224.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) (exp 0))) |
| 223.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) 1)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.0b | (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) |
| 0.0b | (fma 1/360 (pow x 6) (* x x)) |
2 calls. Slowest were:
| 0.0ms | (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) |
| 0.0ms | (fma 1/360 (pow x 6) (* x x)) |
2 calls. Slowest were:
| 72.0ms | (fma 1/360 (pow x 6) (* x x)) |
| 24.0ms | (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) |
6 calls. Slowest were:
| 29.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 28.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 21.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 26.0b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 26.0b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 0.0b | (* (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))))) |
| 0.0b | (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) |
4 calls. Slowest were:
| 8.0ms | (* (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))))) |
| 2.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 1.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
4 calls. Slowest were:
| 69.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 64.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 24.0ms | (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) |
| 24.0ms | (* (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))))) |
42 calls. Slowest were:
| 431.0ms | (* (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 407.0ms | (* (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 304.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 26.0b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 26.0b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 26.0b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 0.5b | (* (sqrt (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))))) (sqrt (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))))) |
4 calls. Slowest were:
| 6.0ms | (* (sqrt (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))))) (sqrt (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))))) |
| 1.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 1.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
4 calls. Slowest were:
| 45.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 43.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 41.0ms | (* (sqrt (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))))) (sqrt (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))))) |
| 41.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
52 calls. Slowest were:
| 378.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
| 356.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
| 347.0ms | (- (+ (* 1/2 (/ 1 (* (sqrt 1/360) x))) (+ (* (sqrt 1/360) (pow x 3)) (* 1/24 (/ x (sqrt 1/360))))) (* 1/1152 (/ 1 (* (pow (sqrt 1/360) 3) x)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
0% (0.6b remaining)
Error of 0.7b against oracle of 0.1b and baseline of 0.7b