



Bits error versus x
Results
| Original | 52.5 |
|---|---|
| Target | 44.8 |
| Herbie | 0.2 |
if x < -1.0817179295038961Initial program 61.9
Taylor expanded around -inf 0.2
Simplified0.2
if -1.0817179295038961 < x < 0.9597911148379592Initial program 58.5
Taylor expanded around 0 0.2
if 0.9597911148379592 < x Initial program 31.1
Taylor expanded around inf 0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019008
(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:
| 3.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 52.7b
Found 3 expressions with local error:
| 13.8b | (sqrt (+ (* x x) 1)) |
| 3.3b | (log (+ x (sqrt (+ (* x x) 1)))) |
| 0.5b | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 3.0ms | (sqrt (+ (* x x) 1)) |
| 2.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 2.0ms | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 130.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 38.0ms | (+ x (sqrt (+ (* x x) 1))) |
| 17.0ms | (sqrt (+ (* x x) 1)) |
21 calls. Slowest were:
| 350.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 231.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 153.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 18.2b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 0.3b | (* 1/6 (pow x 3)) |
| 0.0b | (* 3/40 (pow x 5)) |
3 calls. Slowest were:
| 9.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 2.0ms | (* 1/6 (pow x 3)) |
| 2.0ms | (* 3/40 (pow x 5)) |
3 calls. Slowest were:
| 28.0ms | (* 3/40 (pow x 5)) |
| 27.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 24.0ms | (* 1/6 (pow x 3)) |
17 calls. Slowest were:
| 148.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 85.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 73.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 19.8b | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 12.3b | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 0.2b | (/ -1/16 (pow x 5)) |
| 0.1b | (/ (/ 1/8 x) (* x x)) |
4 calls. Slowest were:
| 28.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 18.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 5.0ms | (/ (/ 1/8 x) (* x x)) |
4 calls. Slowest were:
| 83.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 30.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 22.0ms | (/ (/ 1/8 x) (* x x)) |
| 19.0ms | (/ -1/16 (pow x 5)) |
54 calls. Slowest were:
| 544.0ms | (/ (* (* (/ 1/8 x) (/ 1/8 x)) (/ 1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 394.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 377.0ms | (- (+ (log (/ 1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (log -1/2))) (* 1/4 (/ 1 (pow x 2)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 3 expressions with local error:
| 9.4b | (log (- (+ (* 2 x) (/ 1/2 x)) (/ (/ 1/8 x) (* x x)))) |
| 0.1b | (/ (/ 1/8 x) (* x x)) |
| 0.0b | (+ (* 2 x) (/ 1/2 x)) |
3 calls. Slowest were:
| 16.0ms | (log (- (+ (* 2 x) (/ 1/2 x)) (/ (/ 1/8 x) (* x x)))) |
| 4.0ms | (/ (/ 1/8 x) (* x x)) |
| 3.0ms | (+ (* 2 x) (/ 1/2 x)) |
3 calls. Slowest were:
| 87.0ms | (log (- (+ (* 2 x) (/ 1/2 x)) (/ (/ 1/8 x) (* x x)))) |
| 38.0ms | (+ (* 2 x) (/ 1/2 x)) |
| 15.0ms | (/ (/ 1/8 x) (* x x)) |
33 calls. Slowest were:
| 675.0ms | (log (- (* (+ (pow (* 2 x) 3) (pow (/ 1/2 x) 3)) (* x x)) (* (+ (* (* 2 x) (* 2 x)) (- (* (/ 1/2 x) (/ 1/2 x)) (* (* 2 x) (/ 1/2 x)))) (/ 1/8 x)))) |
| 543.0ms | (/ (* (* (/ 1/8 x) (/ 1/8 x)) (/ 1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 375.0ms | (log (- (pow (+ (* 2 x) (/ 1/2 x)) 3) (pow (/ (/ 1/8 x) (* x x)) 3))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.2b against oracle of 0.2b and baseline of 31.5b