


Bits error versus x
Results
Initial program 0.0
rmApplied add-exp-log0.0
Applied add-exp-log0.0
Applied div-exp0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x)
:name "arccos"
(* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))))
Time bar (total: 38.5s)Debug log
| 15.0ms | (* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.0b | (/ (- 1 x) (+ 1 x)) |
| 0.0b | (sqrt (/ (- 1 x) (+ 1 x))) |
| 0.0b | (atan (sqrt (/ (- 1 x) (+ 1 x)))) |
| 21× | add-sqr-sqrt |
| 19× | times-frac |
| 18× | add-cube-cbrt |
| 18× | *-un-lft-identity |
| 15× | sqrt-prod |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 4× | associate-/r/ |
| 3× | add-log-exp |
| 3× | associate-/l* |
| 3× | log1p-expm1-u |
| 3× | associate-/r* |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | associate-/l/ |
| 2× | div-inv |
| 2× | flip-+ |
| 2× | flip3-+ |
| 2× | rem-sqrt-square |
| 1× | flip-- |
| 1× | div-exp |
| 1× | div-sub |
| 1× | sqrt-div |
| 1× | pow1/2 |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 8.0ms | (/ (- 1 x) (+ 1 x)) |
| 3.0ms | (sqrt (/ (- 1 x) (+ 1 x))) |
| 1.0ms | (atan (sqrt (/ (- 1 x) (+ 1 x)))) |
| 28.0ms | (/ (- 1 x) (+ 1 x)) |
| 26.0ms | (sqrt (/ (- 1 x) (+ 1 x))) |
| 5.0ms | (atan (sqrt (/ (- 1 x) (+ 1 x)))) |
| 1.6s | (- (+ (sqrt -1) (/ 1 (* x (sqrt -1)))) (+ (/ 1 (* (pow x 2) (sqrt -1))) (* 1/2 (/ 1 (* (pow x 2) (pow (sqrt -1) 3)))))) |
| 1.3s | (- (+ (sqrt -1) (/ 1 (* x (sqrt -1)))) (+ (/ 1 (* (pow x 2) (sqrt -1))) (* 1/2 (/ 1 (* (pow x 2) (pow (sqrt -1) 3)))))) |
| 328.0ms | (/ (* (* (- 1 x) (- 1 x)) (- 1 x)) (* (* (+ 1 x) (+ 1 x)) (+ 1 x))) |
| 187.0ms | (- (* 2 (/ 1 x)) (+ (* 2 (/ 1 (pow x 2))) 1)) |
| 172.0ms | (- (* 2 (/ 1 x)) (+ (* 2 (/ 1 (pow x 2))) 1)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 5.5b | (log (- 1 x)) |
| 0.0b | (sqrt (exp (- (log (- 1 x)) (log1p x)))) |
| 0.0b | (- (log (- 1 x)) (log1p x)) |
| 0.0b | (atan (sqrt (exp (- (log (- 1 x)) (log1p x))))) |
| 26× | *-un-lft-identity |
| 26× | add-sqr-sqrt |
| 24× | prod-diff |
| 23× | add-cube-cbrt |
| 20× | sqrt-prod |
| 17× | exp-sum |
| 13× | pow1 |
| 9× | log-pow |
| 9× | log-prod |
| 6× | associate--l+ |
| 5× | add-log-exp |
| 5× | add-exp-log |
| 4× | log1p-expm1-u |
| 4× | fma-neg |
| 4× | add-cbrt-cube |
| 4× | log-div |
| 4× | expm1-log1p-u |
| 3× | flip-- |
| 3× | flip3-- |
| 3× | sub-neg |
| 2× | distribute-lft-out-- |
| 2× | diff-log |
| 2× | log1p-def |
| 2× | associate--l- |
| 1× | difference-of-squares |
| 1× | rem-log-exp |
| 1× | sqrt-div |
| 1× | exp-diff |
| 1× | pow1/2 |
| 1× | log1p-udef |
| 1× | rem-sqrt-square |
| 7.0ms | (sqrt (exp (- (log (- 1 x)) (log1p x)))) |
| 6.0ms | (- (log (- 1 x)) (log1p x)) |
| 1.0ms | (log (- 1 x)) |
| 1.0ms | (atan (sqrt (exp (- (log (- 1 x)) (log1p x))))) |
| 120.0ms | (- (log (- 1 x)) (log1p x)) |
| 96.0ms | (sqrt (exp (- (log (- 1 x)) (log1p x)))) |
| 23.0ms | (log (- 1 x)) |
| 2.0ms | (atan (sqrt (exp (- (log (- 1 x)) (log1p x))))) |
| 1.4s | (- (+ (sqrt -1) (/ 1 (* x (sqrt -1)))) (+ (/ 1 (* (pow x 2) (sqrt -1))) (* 1/2 (/ 1 (* (pow x 2) (pow (sqrt -1) 3)))))) |
| 453.0ms | (- (+ (sqrt (exp (- (log -1)))) (* 1/2 (* (/ 1 (pow x 2)) (sqrt (exp (- (log -1))))))) (* (/ 1 x) (sqrt (exp (- (log -1)))))) |
| 306.0ms | (- (+ (* 2 x) (+ (* 2/3 (pow x 3)) (* 2/5 (pow x 5))))) |
| 285.0ms | (- (log -1) (+ (log (/ 1 x)) (+ (* 1/2 (/ 1 (pow x 2))) (/ 1 x)))) |
| 284.0ms | (- (+ (* 2 (/ 1 x)) (+ (* 2/3 (/ 1 (pow x 3))) (log -1)))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (/ (/ (- 1 x) (sqrt (+ 1 x))) (sqrt (+ 1 x))) |
| 0.0b | (/ (- 1 x) (sqrt (+ 1 x))) |
| 0.0b | (sqrt (/ (/ (- 1 x) (sqrt (+ 1 x))) (sqrt (+ 1 x)))) |
| 0.0b | (sqrt (+ 1 x)) |
| 550× | times-frac |
| 434× | sqrt-prod |
| 306× | add-sqr-sqrt |
| 288× | add-cube-cbrt |
| 288× | *-un-lft-identity |
| 35× | sqrt-div |
| 32× | associate-/r/ |
| 27× | associate-/l* |
| 17× | flip-+ |
| 17× | flip3-+ |
| 16× | div-inv |
| 12× | associate-/r* |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 8× | rem-sqrt-square |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l/ |
| 3× | div-sub |
| 2× | pow1/2 |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | flip-- |
| 1× | flip3-- |
| 10.0ms | (/ (/ (- 1 x) (sqrt (+ 1 x))) (sqrt (+ 1 x))) |
| 5.0ms | (sqrt (/ (/ (- 1 x) (sqrt (+ 1 x))) (sqrt (+ 1 x)))) |
| 3.0ms | (/ (- 1 x) (sqrt (+ 1 x))) |
| 1.0ms | (sqrt (+ 1 x)) |
| 37.0ms | (sqrt (/ (/ (- 1 x) (sqrt (+ 1 x))) (sqrt (+ 1 x)))) |
| 32.0ms | (/ (- 1 x) (sqrt (+ 1 x))) |
| 26.0ms | (/ (/ (- 1 x) (sqrt (+ 1 x))) (sqrt (+ 1 x))) |
| 25.0ms | (sqrt (+ 1 x)) |
| 1.6s | (- (+ (sqrt -1) (/ 1 (* x (sqrt -1)))) (+ (/ 1 (* (pow x 2) (sqrt -1))) (* 1/2 (/ 1 (* (pow x 2) (pow (sqrt -1) 3)))))) |
| 1.4s | (- (+ (sqrt -1) (/ 1 (* x (sqrt -1)))) (+ (/ 1 (* (pow x 2) (sqrt -1))) (* 1/2 (/ 1 (* (pow x 2) (pow (sqrt -1) 3)))))) |
| 669.0ms | (/ (* (* (/ (- 1 x) (sqrt (+ 1 x))) (/ (- 1 x) (sqrt (+ 1 x)))) (/ (- 1 x) (sqrt (+ 1 x)))) (* (* (sqrt (+ 1 x)) (sqrt (+ 1 x))) (sqrt (+ 1 x)))) |
| 530.0ms | (/ (/ (* (* (- 1 x) (- 1 x)) (- 1 x)) (* (* (sqrt (+ 1 x)) (sqrt (+ 1 x))) (sqrt (+ 1 x)))) (* (* (sqrt (+ 1 x)) (sqrt (+ 1 x))) (sqrt (+ 1 x)))) |
| 279.0ms | (sqrt (/ (/ (* (cbrt (- 1 x)) (cbrt (- 1 x))) (sqrt 1)) (* (cbrt (sqrt (+ 1 x))) (cbrt (sqrt (+ 1 x)))))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b