


Bits error versus x
Initial program 58.0
Taylor expanded around 0 0.6
Simplified0.6
Final simplification0.6
herbie shell --seed 2018360 +o rules:numerics
(FPCore (x)
:name "Hyperbolic sine"
(/ (- (exp x) (exp (- x))) 2))
Time bar (total: 13.1s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 57.1b
Found 1 expressions with local error:
| 5.7b | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 5.0ms | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 77.0ms | (- (exp x) (exp (- x))) |
27 calls. Slowest were:
| 69.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 55.0ms | (fma 1 (exp x) (- (* (exp (- x)) 1))) |
| 39.0ms | (fma (sqrt (exp x)) (sqrt (exp x)) (- (* (sqrt (exp (- x))) (sqrt (exp (- x)))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.0b | (* (pow x 5) 1/60) |
| 0.0b | (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)) |
2 calls. Slowest were:
| 4.0ms | (* (pow x 5) 1/60) |
| 0.0ms | (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)) |
2 calls. Slowest were:
| 35.0ms | (* (pow x 5) 1/60) |
| 28.0ms | (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)) |
8 calls. Slowest were:
| 49.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 48.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 39.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.7b | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 0.7b | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 0.7b | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 0.5b | (* (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)))) |
4 calls. Slowest were:
| 10.0ms | (* (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)))) |
| 1.0ms | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 1.0ms | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
4 calls. Slowest were:
| 168.0ms | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 165.0ms | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 159.0ms | (* (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)))) |
| 153.0ms | (cbrt (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
41 calls. Slowest were:
| 502.0ms | (* (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)) (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 496.0ms | (* (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60)) (fma x (fma 1/3 (* x x) 2) (* (pow x 5) 1/60))) |
| 446.0ms | (+ (exp (* 1/3 (- (log 1/3600) (* 10 (log (/ 1 x)))))) (+ (* 40/3 (/ (exp (* 1/3 (- (log 1/3600) (* 10 (log (/ 1 x)))))) (pow x 2))) (* 320/9 (/ (exp (* 1/3 (- (log 1/3600) (* 10 (log (/ 1 x)))))) (pow x 4))))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 5.7b | (- (exp x) (exp (- x))) |
| 5.7b | (- (exp x) (exp (- x))) |
| 5.7b | (- (exp x) (exp (- x))) |
| 0.1b | (cbrt (- (exp x) (exp (- x)))) |
4 calls. Slowest were:
| 10.0ms | (- (exp x) (exp (- x))) |
| 10.0ms | (- (exp x) (exp (- x))) |
| 10.0ms | (- (exp x) (exp (- x))) |
4 calls. Slowest were:
| 180.0ms | (cbrt (- (exp x) (exp (- x)))) |
| 49.0ms | (- (exp x) (exp (- x))) |
| 39.0ms | (- (exp x) (exp (- x))) |
| 38.0ms | (- (exp x) (exp (- x))) |
91 calls. Slowest were:
| 175.0ms | (- (+ (exp (* 1/3 (+ (log 2) (log x)))) (* 1/18 (* (pow x 2) (exp (* 1/3 (+ (log 2) (log x))))))) (* 1/3240 (* (pow x 4) (exp (* 1/3 (+ (log 2) (log x))))))) |
| 170.0ms | (cbrt (- (* (exp x) (exp x)) (* (exp (- x)) (exp (- x))))) |
| 123.0ms | (cbrt (- (pow (exp x) 3) (pow (exp (- x)) 3))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.0b
0% (0.6b remaining)
Error of 0.6b against oracle of 0.0b and baseline of 0.6b