



Bits error versus x
| Original | 29.5 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 29.5
Taylor expanded around 0 0.6
Simplified0.6
Final simplification0.6
herbie shell --seed 2019007 +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: 16.4s)Debug log
1 calls. Slowest were:
| 62.0ms | (+ (- (exp x) 2) (exp (- x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.6b
Found 2 expressions with local error:
| 3.9b | (+ (- (exp x) 2) (exp (- x))) |
| 0.0b | (- (exp x) 2) |
2 calls. Slowest were:
| 17.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 6.0ms | (- (exp x) 2) |
2 calls. Slowest were:
| 88.0ms | (+ (- (exp x) 2) (exp (- x))) |
| 8.0ms | (- (exp x) 2) |
23 calls. Slowest were:
| 441.0ms | (+ (* (- (pow (exp x) 3) (pow 2 3)) (exp x)) (* (+ (* (exp x) (exp x)) (+ (* 2 2) (* (exp x) 2))) (exp 0))) |
| 264.0ms | (+ (* (- (* (exp x) (exp x)) (* 2 2)) (exp x)) (* (+ (exp x) 2) (exp 0))) |
| 187.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:
| 59.0ms | (fma 1/360 (pow x 6) (* x x)) |
| 26.0ms | (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) |
6 calls. Slowest were:
| 15.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 14.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
| 13.0ms | (+ (pow x 2) (+ (* 1/12 (pow x 4)) (* 1/360 (pow x 6)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 27.7b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 27.7b | (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:
| 5.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))))) |
| 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:
| 71.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 49.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 34.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))))) |
| 25.0ms | (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x))) |
42 calls. Slowest were:
| 493.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)))) |
| 395.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)))) |
| 353.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)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 28.6b | (log (* (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)))))) |
| 27.7b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 27.7b | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 2.8b | (exp (log (* (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))))))) |
4 calls. Slowest were:
| 18.0ms | (exp (log (* (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))))))) |
| 11.0ms | (log (* (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)))) |
4 calls. Slowest were:
| 97.0ms | (log (* (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)))))) |
| 62.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 59.0ms | (sqrt (fma 1/12 (pow x 4) (fma 1/360 (pow x 6) (* x x)))) |
| 31.0ms | (exp (log (* (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))))))) |
38 calls. Slowest were:
| 343.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)))) |
| 312.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)))) |
| 283.0ms | (- (+ (log 1/360) (* 30 (/ 1 (pow x 2)))) (+ (* 6 (log (/ -1 x))) (* 90 (/ 1 (pow x 4))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
0% (0.5b remaining)
Error of 0.6b against oracle of 0.1b and baseline of 0.6b