


Bits error versus x
Initial program 57.9
Taylor expanded around 0 0.7
Simplified0.7
Final simplification0.7
herbie shell --seed 2019005 +o rules:numerics
(FPCore (x)
:name "Hyperbolic sine"
(/ (- (exp x) (exp (- x))) 2))
Time bar (total: 13.2s)Debug log
1 calls. Slowest were:
| 22.0ms | (/ (- (exp x) (exp (- x))) 2) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 57.5b
Found 1 expressions with local error:
| 6.7b | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 10.0ms | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 68.0ms | (- (exp x) (exp (- x))) |
27 calls. Slowest were:
| 92.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 81.0ms | (fma 1 (exp x) (- (* (exp (- x)) 1))) |
| 50.0ms | (fma 1 (exp x) (- (* (cbrt (exp (- x))) (* (cbrt (exp (- x))) (cbrt (exp (- x))))))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.1b | (* (pow x 5) 1/60) |
| 0.0b | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
| 0.0b | (fma 1/3 (* x x) 2) |
3 calls. Slowest were:
| 2.0ms | (* (pow x 5) 1/60) |
| 0.0ms | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
| 0.0ms | (fma 1/3 (* x x) 2) |
3 calls. Slowest were:
| 38.0ms | (fma 1/3 (* x x) 2) |
| 33.0ms | (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)) |
| 19.0ms | (* (pow x 5) 1/60) |
11 calls. Slowest were:
| 90.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 90.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 62.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 37.6b | (cbrt (* (* (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))) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 0.1b | (* (* (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))) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 0.1b | (* (pow x 5) 1/60) |
| 0.1b | (* (pow x 5) 1/60) |
4 calls. Slowest were:
| 13.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))) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 6.0ms | (cbrt (* (* (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))) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 2.0ms | (* (pow x 5) 1/60) |
4 calls. Slowest were:
| 54.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))) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60))) |
| 29.0ms | (cbrt (* (* (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))) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 24.0ms | (* (pow x 5) 1/60) |
| 23.0ms | (* (pow x 5) 1/60) |
40 calls. Slowest were:
| 1.1s | (* (* (* (* (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))) (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)) (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)))) (* (* (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))) (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
| 322.0ms | (cbrt (* (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)))) |
| 297.0ms | (+ (log (* (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)))) (log (fma (fma 1/3 (* x x) 2) x (* (pow x 5) 1/60)))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 6.7b | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 10.0ms | (- (exp x) (exp (- x))) |
1 calls. Slowest were:
| 66.0ms | (- (exp x) (exp (- x))) |
27 calls. Slowest were:
| 83.0ms | (+ (* 2 x) (+ (* 1/3 (pow x 3)) (* 1/60 (pow x 5)))) |
| 56.0ms | (fma 1 (exp x) (- (* (exp (- x)) 1))) |
| 39.0ms | (fma 1 (exp x) (- (* (sqrt (exp (- x))) (sqrt (exp (- x)))))) |
6 alts after pruning (3 fresh and 3 done)
Merged error: 0.0b
0% (0.7b remaining)
Error of 0.7b against oracle of 0.0b and baseline of 0.7b