



Bits error versus x
Results
| Original | 52.3 |
|---|---|
| Target | 44.5 |
| Herbie | 0.2 |
if x < -1.0504041428544855Initial program 61.6
Taylor expanded around -inf 0.3
Simplified0.3
if -1.0504041428544855 < x < 0.9554064782023772Initial program 58.5
Taylor expanded around 0 0.2
if 0.9554064782023772 < x Initial program 30.4
Taylor expanded around inf 0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019005
(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.8s)Debug log
1 calls. Slowest were:
| 5.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 51.8b
Found 3 expressions with local error:
| 14.2b | (sqrt (+ (* x x) 1)) |
| 3.3b | (log (+ x (sqrt (+ (* x x) 1)))) |
| 0.4b | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 2.0ms | (sqrt (+ (* x x) 1)) |
| 2.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 1.0ms | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 137.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 36.0ms | (sqrt (+ (* x x) 1)) |
| 26.0ms | (+ x (sqrt (+ (* x x) 1))) |
21 calls. Slowest were:
| 335.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 239.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 142.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 4 expressions with local error:
| 18.3b | (- (+ 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)) |
| 0.0b | (+ x (* 3/40 (pow x 5))) |
4 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)) |
4 calls. Slowest were:
| 77.0ms | (+ x (* 3/40 (pow x 5))) |
| 30.0ms | (* 3/40 (pow x 5)) |
| 24.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 20.0ms | (* 1/6 (pow x 3)) |
20 calls. Slowest were:
| 131.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 59.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 45.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 12.1b | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 0.1b | (/ (/ -1/8 x) (* x x)) |
| 0.0b | (+ x (/ 1/2 x)) |
| 0.0b | (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) |
4 calls. Slowest were:
| 11.0ms | (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) |
| 7.0ms | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 5.0ms | (/ (/ -1/8 x) (* x x)) |
4 calls. Slowest were:
| 116.0ms | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 32.0ms | (+ x (/ 1/2 x)) |
| 26.0ms | (/ (/ -1/8 x) (* x x)) |
| 25.0ms | (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) |
36 calls. Slowest were:
| 681.0ms | (log (+ (pow x 3) (pow (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) 3))) |
| 461.0ms | (/ (* (* (/ -1/8 x) (/ -1/8 x)) (/ -1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 358.0ms | (- (+ (log -2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ -1 x)) (* 3/32 (/ 1 (pow x 4))))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 20.2b | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 13.3b | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 0.1b | (/ (/ 1/8 x) (* x x)) |
| 0.1b | (/ -1/16 (pow x 5)) |
4 calls. Slowest were:
| 24.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 24.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 6.0ms | (/ (/ 1/8 x) (* x x)) |
4 calls. Slowest were:
| 88.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 36.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 19.0ms | (/ -1/16 (pow x 5)) |
| 15.0ms | (/ (/ 1/8 x) (* x x)) |
54 calls. Slowest were:
| 520.0ms | (/ (* (* (/ 1/8 x) (/ 1/8 x)) (/ 1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 374.0ms | (- (+ (log (/ 1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (log -1/2))) (* 1/4 (/ 1 (pow x 2)))) |
| 327.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.0b
99.4% (0.2b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 31.4b