



Bits error versus x
Results
| Original | 53.1 |
|---|---|
| Target | 44.9 |
| Herbie | 0.2 |
if x < -1.064344331483051Initial program 62.1
Taylor expanded around -inf 0.1
Simplified0.1
if -1.064344331483051 < x < 0.9553108426415594Initial program 58.5
Taylor expanded around 0 0.2
if 0.9553108426415594 < x Initial program 31.3
Taylor expanded around inf 0.3
Simplified0.3
Final simplification0.2
herbie shell --seed 2018365
(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: 10.5s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 54.1b
Found 3 expressions with local error:
| 17.7b | (sqrt (+ (* x x) 1)) |
| 3.2b | (log (+ x (sqrt (+ (* x x) 1)))) |
| 0.5b | (+ 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:
| 102.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 38.0ms | (+ x (sqrt (+ (* x x) 1))) |
| 18.0ms | (sqrt (+ (* x x) 1)) |
21 calls. Slowest were:
| 371.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 267.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 159.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 22.5b | (- (+ 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)) |
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:
| 26.0ms | (- (+ x (* 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:
| 113.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 98.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 91.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 13.6b | (cbrt (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3)))) |
4 calls. Slowest were:
| 9.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 8.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 4.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 calls. Slowest were:
| 118.0ms | (cbrt (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3)))) |
| 34.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 29.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 24.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
20 calls. Slowest were:
| 481.0ms | (cbrt (- (pow (+ x (* 3/40 (pow x 5))) 3) (pow (* 1/6 (pow x 3)) 3))) |
| 354.0ms | (cbrt (- (* (+ x (* 3/40 (pow x 5))) (+ x (* 3/40 (pow x 5)))) (* (* 1/6 (pow x 3)) (* 1/6 (pow x 3))))) |
| 240.0ms | (- (+ (exp (* 1/3 (- (log -3/40) (* 5 (log (/ -1 x)))))) (* 2840/729 (/ (exp (* 1/3 (- (log -3/40) (* 5 (log (/ -1 x)))))) (pow x 4)))) (* 20/27 (/ (exp (* 1/3 (- (log -3/40) (* 5 (log (/ -1 x)))))) (pow x 2)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 22.5b | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 calls. Slowest were:
| 9.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 9.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 5.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 calls. Slowest were:
| 38.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 36.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 27.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 24.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
16 calls. Slowest were:
| 174.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 160.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 137.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.2b against oracle of 0.2b and baseline of 30.7b