



Bits error versus x
Results
| Original | 52.4 |
|---|---|
| Target | 44.9 |
| Herbie | 0.2 |
if x < -1.0758538884884035Initial program 61.7
Taylor expanded around -inf 0.2
Simplified0.2
if -1.0758538884884035 < x < 0.9596366603743689Initial program 58.8
Taylor expanded around 0 0.2
if 0.9596366603743689 < x Initial program 30.4
Taylor expanded around inf 0.3
Simplified0.3
Final simplification0.2
herbie shell --seed 2019010
(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.7s)Debug log
| 3.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 53.6b
Found 3 expressions with local error:
| 12.6b | (sqrt (+ (* x x) 1)) |
| 2.3b | (log (+ x (sqrt (+ (* x x) 1)))) |
| 0.5b | (+ x (sqrt (+ (* x x) 1))) |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 4× | add-exp-log |
| 4× | pow1 |
| 3× | add-log-exp |
| 3× | flip-+ |
| 3× | sqrt-prod |
| 3× | add-cbrt-cube |
| 3× | flip3-+ |
| 3× | log-prod |
| 2× | sqrt-div |
| 2× | log-div |
| 1× | log-pow |
| 1× | rem-log-exp |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 4.0ms | (sqrt (+ (* x x) 1)) |
| 3.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 3.0ms | (+ x (sqrt (+ (* x x) 1))) |
| 111.0ms | (log (+ x (sqrt (+ (* x x) 1)))) |
| 27.0ms | (sqrt (+ (* x x) 1)) |
| 26.0ms | (+ x (sqrt (+ (* x x) 1))) |
| 424.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 272.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 171.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ (* 1/16 (/ 1 (pow x 5))) (* 1/2 (/ 1 x)))) |
| 141.0ms | (- (+ (* 2 x) (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
| 112.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:
| 18.4b | (- (+ 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)) |
| 8× | associate-*r* |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | *-commutative |
| 1× | flip-- |
| 1× | associate--l+ |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | cube-mult |
| 5.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)) |
| 36.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 34.0ms | (* 3/40 (pow x 5)) |
| 26.0ms | (* 1/6 (pow x 3)) |
| 165.0ms | (/ (exp (+ x (* 3/40 (pow x 5)))) (exp (* 1/6 (pow x 3)))) |
| 83.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))) |
| 60.0ms | (- (+ x (* 3/40 (pow x 5))) (* 1/6 (pow x 3))) |
| 11.0ms | (* 1/6 (pow x 3)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 20.2b | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 12.1b | (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)) |
| 18× | *-un-lft-identity |
| 12× | add-sqr-sqrt |
| 9× | add-log-exp |
| 8× | add-cube-cbrt |
| 8× | frac-sub |
| 7× | add-exp-log |
| 6× | distribute-lft-out-- |
| 6× | add-cbrt-cube |
| 6× | log-prod |
| 5× | log-div |
| 5× | pow1 |
| 4× | associate-/l* |
| 4× | flip-- |
| 4× | div-inv |
| 4× | flip3-- |
| 4× | times-frac |
| 4× | associate-/r* |
| 3× | diff-log |
| 2× | difference-of-squares |
| 2× | associate--r+ |
| 2× | frac-2neg |
| 2× | sub-neg |
| 2× | clear-num |
| 1× | associate-/l/ |
| 1× | associate--r- |
| 1× | log-pow |
| 1× | rem-log-exp |
| 1× | div-exp |
| 1× | cbrt-undiv |
| 16.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 15.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 5.0ms | (/ (/ 1/8 x) (* x x)) |
| 1.0ms | (/ -1/16 (pow x 5)) |
| 82.0ms | (log (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x))))) |
| 27.0ms | (- (/ -1/16 (pow x 5)) (- (/ 1/2 x) (/ (/ 1/8 x) (* x x)))) |
| 21.0ms | (/ -1/16 (pow x 5)) |
| 18.0ms | (/ (/ 1/8 x) (* x x)) |
| 613.0ms | (/ (* (* (/ 1/8 x) (/ 1/8 x)) (/ 1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 357.0ms | (- (+ (log (/ -1 x)) (+ (log 1/2) (* 3/32 (/ 1 (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
| 299.0ms | (log (- (* -1/16 (* x (* x x))) (* (pow x 5) (- (* 1/2 (* x x)) (* x (/ 1/8 x)))))) |
| 292.0ms | (* (pow x 5) (+ (* (/ 1/2 x) (/ 1/2 x)) (+ (* (/ (/ 1/8 x) (* x x)) (/ (/ 1/8 x) (* x x))) (* (/ 1/2 x) (/ (/ 1/8 x) (* x x)))))) |
| 274.0ms | (- (+ (log (/ 1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (log -1/2))) (* 1/4 (/ 1 (pow x 2)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 9.9b | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 0.1b | (/ (/ -1/8 x) (* x x)) |
| 0.0b | (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x)))) |
| 0.0b | (+ x (/ 1/2 x)) |
| 7× | add-cube-cbrt |
| 7× | add-exp-log |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-cbrt-cube |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | associate-/l* |
| 4× | times-frac |
| 3× | div-inv |
| 3× | flip-+ |
| 3× | flip3-+ |
| 3× | log-prod |
| 2× | log-div |
| 2× | +-commutative |
| 1× | associate-/l/ |
| 1× | log-pow |
| 1× | rem-log-exp |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | associate-+r+ |
| 1× | cbrt-undiv |
| 6.0ms | (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x)))) |
| 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)) |
| 117.0ms | (log (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))))) |
| 26.0ms | (/ (/ -1/8 x) (* x x)) |
| 25.0ms | (+ x (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x)))) |
| 19.0ms | (+ x (/ 1/2 x)) |
| 994.0ms | (log (+ (pow x 3) (pow (+ (+ x (/ 1/2 x)) (/ (/ -1/8 x) (* x x))) 3))) |
| 541.0ms | (/ (* (* (/ -1/8 x) (/ -1/8 x)) (/ -1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 331.0ms | (- (+ (log -2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ -1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 266.0ms | (- (+ (log 2) (* 1/4 (/ 1 (pow x 2)))) (+ (log (/ 1 x)) (* 3/32 (/ 1 (pow x 4))))) |
| 250.0ms | (- (log -1/8) (+ (* 4 (pow x 2)) (+ (* 24 (pow x 4)) (* 3 (log x))))) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0.0b
99.5% (0.2b remaining)
Error of 0.2b against oracle of 0.1b and baseline of 30.7b