



Bits error versus x
Results
| Original | 52.2 |
|---|---|
| Target | 44.6 |
| Herbie | 0.2 |
if x < -1.0435353126017766Initial program 61.7
Taylor expanded around -inf 0.2
Simplified0.2
if -1.0435353126017766 < x < 0.9667467142280759Initial program 58.8
Taylor expanded around 0 0.2
if 0.9667467142280759 < x Initial program 30.3
Taylor expanded around inf 0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019002
(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:
| 6.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 52.8b
Found 3 expressions with local error:
| 13.5b | (sqrt (+ (* x x) 1)) |
| 3.2b | (log (+ x (sqrt (+ (* x x) 1)))) |
| 0.3b | (+ 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:
| 146.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 37.0ms | (+ x (sqrt (+ (* x x) 1))) |
| 16.0ms | (sqrt (+ (* x x) 1)) |
21 calls. Slowest were:
| 435.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 222.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 157.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 3 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.0b | (* 3/40 (pow x 5)) |
3 calls. Slowest were:
| 8.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:
| 26.0ms | (* 3/40 (pow x 5)) |
| 23.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.0ms | (* 1/6 (pow x 3)) |
17 calls. Slowest were:
| 129.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 91.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 78.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 3 expressions with local error:
| 12.6b | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 0.1b | (/ (/ -1/8 x) (* x x)) |
| 0.0b | (+ x (/ 1/2 x)) |
3 calls. Slowest were:
| 4.0ms | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 3.0ms | (/ (/ -1/8 x) (* x x)) |
| 1.0ms | (+ x (/ 1/2 x)) |
3 calls. Slowest were:
| 80.0ms | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 26.0ms | (+ x (/ 1/2 x)) |
| 20.0ms | (/ (/ -1/8 x) (* x x)) |
27 calls. Slowest were:
| 837.0ms | (log (+ (pow x 3) (pow (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) 3))) |
| 609.0ms | (/ (* (* (/ -1/8 x) (/ -1/8 x)) (/ -1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 396.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.6b | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 15.7b | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 0.1b | (/ (/ 1/8 x) (* x x)) |
| 0.0b | (/ -1/16 (pow x 5)) |
4 calls. Slowest were:
| 12.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 10.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 3.0ms | (/ (/ 1/8 x) (* x x)) |
4 calls. Slowest were:
| 71.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)))) |
| 23.0ms | (/ (/ 1/8 x) (* x x)) |
| 20.0ms | (/ -1/16 (pow x 5)) |
54 calls. Slowest were:
| 632.0ms | (/ (* (* (/ 1/8 x) (/ 1/8 x)) (/ 1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 423.0ms | (- (+ (log (/ 1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (log -1/2))) (* 1/4 (/ 1 (pow x 2)))) |
| 385.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.1b