



Bits error versus x
Results
| Original | 52.5 |
|---|---|
| Target | 44.6 |
| Herbie | 0.1 |
if x < -1.0431269623985902Initial program 61.7
Simplified60.9
Taylor expanded around -inf 0.1
Simplified0.1
if -1.0431269623985902 < x < 0.006278827665799433Initial program 58.8
Simplified58.8
Taylor expanded around 0 0.1
rmApplied associate--l+0.1
if 0.006278827665799433 < x Initial program 31.1
Simplified0.2
rmApplied add-sqr-sqrt0.2
Applied log-prod0.2
Final simplification0.1
herbie shell --seed 2019004 +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: 12.5s)Debug log
1 calls. Slowest were:
| 4.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 43.6b
Found 3 expressions with local error:
| 2.0b | (log (+ x (hypot 1 x))) |
| 0.9b | (+ x (hypot 1 x)) |
| 0.0b | (hypot 1 x) |
3 calls. Slowest were:
| 1.0ms | (log (+ x (hypot 1 x))) |
| 1.0ms | (+ x (hypot 1 x)) |
| 0.0ms | (hypot 1 x) |
3 calls. Slowest were:
| 149.0ms | (log (+ x (hypot 1 x))) |
| 51.0ms | (+ x (hypot 1 x)) |
| 23.0ms | (hypot 1 x) |
15 calls. Slowest were:
| 414.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 230.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
| 211.0ms | (- (+ (* 2 x) (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 21.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 0.3b | (* 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:
| 38.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 26.0ms | (* 1/6 (pow x 3)) |
| 22.0ms | (* 3/40 (pow x 5)) |
25 calls. Slowest were:
| 170.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 147.0ms | (fma 1 (+ x (* 3/40 (pow x 5))) (- (* (pow x 3) 1/6))) |
| 126.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 21.5b | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 0.3b | (* 1/6 (pow x 3)) |
| 0.1b | (* 3/40 (pow x 5)) |
3 calls. Slowest were:
| 3.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 1.0ms | (* 3/40 (pow x 5)) |
| 1.0ms | (* 1/6 (pow x 3)) |
3 calls. Slowest were:
| 78.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 24.0ms | (* 3/40 (pow x 5)) |
| 16.0ms | (* 1/6 (pow x 3)) |
19 calls. Slowest were:
| 63.0ms | (/ (exp (* 3/40 (pow x 5))) (exp (* 1/6 (pow x 3)))) |
| 54.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 46.0ms | (fma 3/40 (pow x 5) (- (* (pow x 3) 1/6))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 2.1b | (log (sqrt (+ x (hypot 1 x)))) |
| 2.1b | (log (sqrt (+ x (hypot 1 x)))) |
| 0.9b | (+ x (hypot 1 x)) |
| 0.9b | (+ x (hypot 1 x)) |
4 calls. Slowest were:
| 1.0ms | (log (sqrt (+ x (hypot 1 x)))) |
| 1.0ms | (log (sqrt (+ x (hypot 1 x)))) |
| 1.0ms | (+ x (hypot 1 x)) |
4 calls. Slowest were:
| 94.0ms | (log (sqrt (+ x (hypot 1 x)))) |
| 88.0ms | (log (sqrt (+ x (hypot 1 x)))) |
| 47.0ms | (+ x (hypot 1 x)) |
| 43.0ms | (+ x (hypot 1 x)) |
30 calls. Slowest were:
| 256.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
| 227.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
| 182.0ms | (- (+ (* 2 x) (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
99.8% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 31.3b