


Bits error versus x
Results
Initial program 30.9
Taylor expanded around inf 0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019010
(FPCore (x)
:name "Hyperbolic arc-cosine"
(log (+ x (sqrt (- (* x x) 1)))))
Time bar (total: 11.6s)Debug log
| 93.0ms | (log (+ x (sqrt (- (* x x) 1)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 28.3b
Found 3 expressions with local error:
| 27.2b | (sqrt (- (* x x) 1)) |
| 0.0b | (+ x (sqrt (- (* x x) 1))) |
| 0.0b | (log (+ x (sqrt (- (* x x) 1)))) |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 4× | sqrt-prod |
| 4× | add-exp-log |
| 4× | pow1 |
| 3× | add-log-exp |
| 3× | add-cbrt-cube |
| 3× | log-prod |
| 2× | flip-+ |
| 2× | sqrt-div |
| 2× | flip3-+ |
| 2× | log-div |
| 1× | flip-- |
| 1× | log-pow |
| 1× | rem-log-exp |
| 1× | difference-of-sqr-1 |
| 1× | pow1/2 |
| 1× | flip3-- |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 2.0ms | (sqrt (- (* x x) 1)) |
| 2.0ms | (log (+ x (sqrt (- (* x x) 1)))) |
| 2.0ms | (+ x (sqrt (- (* x x) 1))) |
| 100.0ms | (log (+ x (sqrt (- (* x x) 1)))) |
| 35.0ms | (+ x (sqrt (- (* x x) 1))) |
| 24.0ms | (sqrt (- (* x x) 1)) |
| 576.0ms | (log (- (* x x) (* (sqrt (- (* x x) 1)) (sqrt (- (* x x) 1))))) |
| 373.0ms | (- (+ (* 1/2 (/ (pow x 2) (sqrt -1))) (sqrt -1)) (* 1/8 (/ (pow x 4) (pow (sqrt -1) 3)))) |
| 281.0ms | (+ (log -1/2) (+ (log (/ -1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))))) |
| 185.0ms | (- (log 2) (+ (log (/ 1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))))) |
| 176.0ms | (- (+ (log (sqrt -1)) (/ x (sqrt -1))) (* 1/6 (/ (pow x 3) (pow (sqrt -1) 3)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.1b | (/ (/ 1/8 x) (* x x)) |
| 0.0b | (+ x (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x)))) |
| 0.0b | (log (+ x (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x))))) |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | add-cbrt-cube |
| 4× | associate-/l* |
| 4× | times-frac |
| 4× | pow1 |
| 3× | add-log-exp |
| 3× | div-inv |
| 3× | log-prod |
| 3× | associate-+r+ |
| 2× | flip-+ |
| 2× | flip3-+ |
| 2× | log-div |
| 1× | associate-/l/ |
| 1× | log-pow |
| 1× | associate--l+ |
| 1× | rem-log-exp |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | associate-/r* |
| 1× | associate-+r- |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 15.0ms | (+ x (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x)))) |
| 14.0ms | (log (+ x (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x))))) |
| 3.0ms | (/ (/ 1/8 x) (* x x)) |
| 80.0ms | (log (+ x (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x))))) |
| 24.0ms | (/ (/ 1/8 x) (* x x)) |
| 21.0ms | (+ x (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x)))) |
| 581.0ms | (/ (* (* (/ 1/8 x) (/ 1/8 x)) (/ 1/8 x)) (* (* (* x x) (* x x)) (* x x))) |
| 579.0ms | (log (+ (pow x 3) (pow (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x))) 3))) |
| 481.0ms | (- (log -2) (+ (log (/ -1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))))) |
| 237.0ms | (- (log 2) (+ (log (/ 1 x)) (+ (* 3/32 (/ 1 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))))) |
| 212.0ms | (log (- (* x x) (* (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x))) (- (+ (/ -1/2 x) x) (/ (/ 1/8 x) (* x x)))))) |
1 alts after pruning (0 fresh and 1 done)
Merged error: 0b