



Bits error versus x
Results
| Original | 52.6 |
|---|---|
| Target | 45.1 |
| Herbie | 0.2 |
if x < -1.0647793477551444Initial program 61.7
Taylor expanded around -inf 0.2
Simplified0.2
if -1.0647793477551444 < x < 0.9653629003926745Initial program 58.5
Taylor expanded around 0 0.2
rmApplied associate--l+0.2
if 0.9653629003926745 < x Initial program 31.4
Taylor expanded around inf 0.3
Simplified0.3
Final simplification0.2
herbie shell --seed 2018362
(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: 9.9s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 53.4b
Found 3 expressions with local error:
| 13.0b | (sqrt (+ (* x x) 1)) |
| 4.8b | (log (+ x (sqrt (+ (* x x) 1)))) |
| 0.0b | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 3.0ms | (sqrt (+ (* x x) 1)) |
| 2.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 1.0ms | (+ x (sqrt (+ (* x x) 1))) |
3 calls. Slowest were:
| 138.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 23.0ms | (+ x (sqrt (+ (* x x) 1))) |
| 16.0ms | (sqrt (+ (* x x) 1)) |
21 calls. Slowest were:
| 420.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 277.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 145.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 17.1b | (- (+ 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:
| 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:
| 33.0ms | (* 3/40 (pow x 5)) |
| 29.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 15.0ms | (* 1/6 (pow x 3)) |
17 calls. Slowest were:
| 125.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))) |
| 66.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 17.1b | (- (* 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:
| 5.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:
| 89.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 31.0ms | (* 3/40 (pow x 5)) |
| 25.0ms | (* 1/6 (pow x 3)) |
17 calls. Slowest were:
| 77.0ms | (/ (exp (* 3/40 (pow x 5))) (exp (* 1/6 (pow x 3)))) |
| 47.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
| 38.0ms | (- (* 3/40 (pow x 5)) (* 1/6 (pow x 3))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 10.7b | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 0.1b | (/ (/ -1/8 x) (* x x)) |
| 0.0b | (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) |
3 calls. Slowest were:
| 10.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)) |
3 calls. Slowest were:
| 114.0ms | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 16.0ms | (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) |
| 15.0ms | (/ (/ -1/8 x) (* x x)) |
33 calls. Slowest were:
| 797.0ms | (log (+ (pow x 3) (pow (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) 3))) |
| 662.0ms | (/ (* (* (/ -1/8 x) (/ -1/8 x)) (/ -1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 499.0ms | (+ (* (- (* x x) (* (/ 1/2 x) (/ 1/2 x))) (* x x)) (* (- x (/ 1/2 x)) (/ -1/8 x))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
99.4% (0.2b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 31.2b