



Bits error versus x
Results
| Original | 52.7 |
|---|---|
| Target | 45.3 |
| Herbie | 0.1 |
if x < -1.0523035624951123Initial program 61.9
Initial simplification61.1
rmApplied add-sqr-sqrt61.6
Taylor expanded around -inf 0.1
Simplified0.1
if -1.0523035624951123 < x < 0.009179225592393325Initial program 58.6
Initial simplification58.6
Taylor expanded around 0 0.1
if 0.009179225592393325 < x Initial program 31.7
Initial simplification0.0
rmApplied add-sqr-sqrt0.0
Final simplification0.1
herbie shell --seed 2018360 +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: 13.2s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 45.0b
Found 3 expressions with local error:
| 2.7b | (log (+ x (hypot 1 x))) |
| 0.7b | (+ x (hypot 1 x)) |
| 0.0b | (hypot 1 x) |
3 calls. Slowest were:
| 2.0ms | (log (+ x (hypot 1 x))) |
| 1.0ms | (+ x (hypot 1 x)) |
| 0.0ms | (hypot 1 x) |
3 calls. Slowest were:
| 175.0ms | (log (+ x (hypot 1 x))) |
| 35.0ms | (+ x (hypot 1 x)) |
| 34.0ms | (hypot 1 x) |
15 calls. Slowest were:
| 449.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 409.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 211.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 18.2b | (- (+ 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))) |
| 3.0ms | (* 3/40 (pow x 5)) |
| 1.0ms | (* 1/6 (pow x 3)) |
3 calls. Slowest were:
| 33.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 21.0ms | (* 3/40 (pow x 5)) |
| 19.0ms | (* 1/6 (pow x 3)) |
25 calls. Slowest were:
| 151.0ms | (fma 1 (+ x (* 3/40 (pow x 5))) (- (* (pow x 3) 1/6))) |
| 143.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 120.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 2.7b | (log (+ x (hypot 1 x))) |
| 2.7b | (log (+ x (hypot 1 x))) |
| 2.7b | (log (+ x (hypot 1 x))) |
| 0.7b | (+ x (hypot 1 x)) |
4 calls. Slowest were:
| 2.0ms | (log (+ x (hypot 1 x))) |
| 2.0ms | (log (+ x (hypot 1 x))) |
| 2.0ms | (log (+ x (hypot 1 x))) |
4 calls. Slowest were:
| 137.0ms | (log (+ x (hypot 1 x))) |
| 119.0ms | (log (+ x (hypot 1 x))) |
| 114.0ms | (log (+ x (hypot 1 x))) |
| 30.0ms | (+ x (hypot 1 x)) |
30 calls. Slowest were:
| 492.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 483.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 478.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 7.3b | (+ x (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x)))) |
| 2.7b | (log (+ x (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))))) |
| 0.2b | (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))) |
| 0.0b | (hypot 1 x) |
4 calls. Slowest were:
| 9.0ms | (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))) |
| 3.0ms | (+ x (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x)))) |
| 1.0ms | (log (+ x (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))))) |
4 calls. Slowest were:
| 116.0ms | (log (+ x (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))))) |
| 53.0ms | (+ x (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x)))) |
| 36.0ms | (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))) |
| 35.0ms | (hypot 1 x) |
39 calls. Slowest were:
| 410.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 407.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 241.0ms | (log (- (* x x) (* (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))) (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x)))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
99.7% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 30.7b