


Bits error versus x
Initial program 57.9
Taylor expanded around 0 0.7
Simplified0.7
Final simplification0.7
herbie shell --seed 2019004 +o rules:numerics
(FPCore (x)
:name "Hyperbolic sine"
(/ (- (exp x) (exp (- x))) 2))
Time bar (total: 24.2s)Debug log
1 calls. Slowest were:
| 37.0ms | (/ (- (exp x) (exp (- x))) 2) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 58.0b
Found 1 expressions with local error:
| 5.1b | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 5.0ms | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 53.0ms | (- (exp x) (exp (- x))) |
27 calls. Slowest were:
| 55.0ms | (fma 1 (exp x) (- (* (exp (- x)) 1))) |
| 52.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 46.0ms | (fma (sqrt (exp x)) (sqrt (exp x)) (- (* (exp (- x)) 1))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.0b | (* (pow x 5) 1/60) |
| 0.0b | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
2 calls. Slowest were:
| 4.0ms | (* (pow x 5) 1/60) |
| 0.0ms | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
2 calls. Slowest were:
| 24.0ms | (* (pow x 5) 1/60) |
| 24.0ms | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
8 calls. Slowest were:
| 60.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 55.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 54.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (* (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 0.0b | (* (pow x 5) 1/60) |
| 0.0b | (* (pow x 5) 1/60) |
| 0.0b | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
4 calls. Slowest were:
| 5.0ms | (* (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 2.0ms | (* (pow x 5) 1/60) |
| 2.0ms | (* (pow x 5) 1/60) |
4 calls. Slowest were:
| 38.0ms | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
| 38.0ms | (* (pow x 5) 1/60) |
| 35.0ms | (* (pow x 5) 1/60) |
| 34.0ms | (* (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
38 calls. Slowest were:
| 286.0ms | (* (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 282.0ms | (* (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 172.0ms | (* (* (* (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) (* (* (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) (sqrt (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 5.0b | (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) |
| 0.0b | (* (exp x) (exp x)) |
| 0.0b | (/ (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) (+ (exp x) (exp (- x)))) |
| 0.0b | (* (exp (- x)) (exp (- x))) |
4 calls. Slowest were:
| 32.0ms | (/ (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) (+ (exp x) (exp (- x)))) |
| 12.0ms | (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) |
| 11.0ms | (* (exp (- x)) (exp (- x))) |
4 calls. Slowest were:
| 107.0ms | (/ (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) (+ (exp x) (exp (- x)))) |
| 73.0ms | (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) |
| 17.0ms | (* (exp (- x)) (exp (- x))) |
| 9.0ms | (* (exp x) (exp x)) |
114 calls. Slowest were:
| 545.0ms | (- (* (* (exp x) (exp x)) (* (exp x) (exp x))) (* (* (exp (- x)) (exp (- x))) (* (exp (- x)) (exp (- x))))) |
| 521.0ms | (/ (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) (+ (exp x) (exp (- x)))) |
| 505.0ms | (/ (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x)))) (+ (exp x) (exp (- x)))) |
6 alts after pruning (3 fresh and 3 done)
Merged error: 0.0b
0% (0.6b remaining)
Error of 0.7b against oracle of 0.1b and baseline of 0.7b