



Bits error versus x
Results
| Original | 53.1 |
|---|---|
| Target | 44.9 |
| Herbie | 0.1 |
if x < -1.064344331483051Initial program 62.1
Initial simplification61.3
Taylor expanded around -inf 0.1
Simplified0.1
if -1.064344331483051 < x < 0.007255032243074975Initial program 58.6
Initial simplification58.6
Taylor expanded around 0 0.1
if 0.007255032243074975 < x Initial program 31.1
Initial simplification0.1
Final simplification0.1
herbie shell --seed 2018365 +o rules:numerics
(FPCore (x)
:name "Hyperbolic arcsine"
:herbie-target
(if (< x 0) (log (/ -1 (- x (sqrt (+ (* x x) 1))))) (log (+ x (sqrt (+ (* x x) 1)))))
(log (+ x (sqrt (+ (* x x) 1)))))
Time bar (total: 17.1s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 45.6b
Found 2 expressions with local error:
| 3.2b | (log (+ x (hypot 1 x))) |
| 0.5b | (+ x (hypot 1 x)) |
2 calls. Slowest were:
| 2.0ms | (log (+ x (hypot 1 x))) |
| 2.0ms | (+ x (hypot 1 x)) |
2 calls. Slowest were:
| 144.0ms | (log (+ x (hypot 1 x))) |
| 38.0ms | (+ x (hypot 1 x)) |
12 calls. Slowest were:
| 511.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 290.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
| 195.0ms | (- (+ (* 2 x) (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 0.1b | (* 1/6 (pow x 3)) |
| 0.1b | (* 3/40 (pow x 5)) |
3 calls. Slowest were:
| 5.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 1.0ms | (* 1/6 (pow x 3)) |
| 1.0ms | (* 3/40 (pow x 5)) |
3 calls. Slowest were:
| 27.0ms | (* 1/6 (pow x 3)) |
| 26.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 23.0ms | (* 3/40 (pow x 5)) |
25 calls. Slowest were:
| 137.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 135.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 133.0ms | (fma (sqrt (+ x (* 3/40 (pow x 5)))) (sqrt (+ x (* 3/40 (pow x 5)))) (- (* (pow x 3) 1/6))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 13.6b | (cbrt (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3)))) |
4 calls. Slowest were:
| 11.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 10.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 5.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 calls. Slowest were:
| 138.0ms | (cbrt (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3)))) |
| 33.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 28.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 25.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
44 calls. Slowest were:
| 531.0ms | (cbrt (- (pow (+ x (* 3/40 (pow x 5))) 3) (pow (* 1/6 (pow x 3)) 3))) |
| 517.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 408.0ms | (cbrt (- (* (+ x (* 3/40 (pow x 5))) (+ x (* 3/40 (pow x 5)))) (* (* 1/6 (pow x 3)) (* 1/6 (pow x 3))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 calls. Slowest were:
| 7.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 5.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 5.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 calls. Slowest were:
| 35.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 33.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 26.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 24.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
48 calls. Slowest were:
| 209.0ms | (fma 1 (+ x (* 3/40 (pow x 5))) (- (* (pow x 3) 1/6))) |
| 180.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 154.0ms | (fma 1 (+ x (* 3/40 (pow x 5))) (- (* (pow x 3) 1/6))) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0.0b
99.8% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 30.7b