



Bits error versus x
Results
| Original | 52.5 |
|---|---|
| Target | 44.6 |
| Herbie | 0.2 |
if x < -1.0431269623985902Initial program 61.7
Taylor expanded around -inf 0.1
Simplified0.1
if -1.0431269623985902 < x < 0.9641901334977748Initial program 58.5
Taylor expanded around 0 0.3
rmApplied associate--l+0.3
if 0.9641901334977748 < x Initial program 31.5
Taylor expanded around inf 0.3
Simplified0.3
Final simplification0.2
herbie shell --seed 2019004
(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: 15.3s)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: 52.5b
Found 3 expressions with local error:
| 17.7b | (sqrt (+ (* x x) 1)) |
| 2.0b | (log (+ x (sqrt (+ (* x x) 1)))) |
| 0.9b | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 3.0ms | (sqrt (+ (* x x) 1)) |
| 3.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 3.0ms | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 144.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 35.0ms | (+ x (sqrt (+ (* x x) 1))) |
| 24.0ms | (sqrt (+ (* x x) 1)) |
21 calls. Slowest were:
| 368.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 205.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 174.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
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:
| 4.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:
| 27.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 27.0ms | (* 3/40 (pow x 5)) |
| 15.0ms | (* 1/6 (pow x 3)) |
17 calls. Slowest were:
| 122.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 87.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 80.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:
| 6.0ms | (- (* 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:
| 79.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 24.0ms | (* 1/6 (pow x 3)) |
| 20.0ms | (* 3/40 (pow x 5)) |
17 calls. Slowest were:
| 69.0ms | (/ (exp (* 3/40 (pow x 5))) (exp (* 1/6 (pow x 3)))) |
| 45.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 24.0ms | (- (* 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:
| 17.4b | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 12.4b | (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 | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 21.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 6.0ms | (/ (/ 1/8 x) (* x x)) |
4 calls. Slowest were:
| 90.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 42.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 26.0ms | (/ (/ 1/8 x) (* x x)) |
| 20.0ms | (/ -1/16 (pow x 5)) |
54 calls. Slowest were:
| 490.0ms | (/ (* (* (/ 1/8 x) (/ 1/8 x)) (/ 1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 426.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 373.0ms | (log (+ (sqrt (/ -1/16 (pow x 5))) (sqrt (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.0b
99.4% (0.2b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 31.3b