


Bits error versus x
Initial program 0.1
rmApplied add-cube-cbrt0.1
Applied fma-def0.1
Final simplification0.1
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x)
:name "Hyperbolic arc-(co)secant"
(log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))))
Time bar (total: 10.6s)Debug log
| 76.0ms | 805× | body | 80 | nan |
| 28.0ms | 256× | body | 80 | valid |
| 42.0ms | (log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.0b | (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)) |
| 0.0b | (log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))) |
| 12× | *-un-lft-identity |
| 11× | div-inv |
| 8× | log-prod |
| 4× | add-log-exp |
| 4× | distribute-lft-out |
| 4× | add-cube-cbrt |
| 4× | distribute-rgt-out |
| 4× | fma-def |
| 4× | add-sqr-sqrt |
| 3× | add-exp-log |
| 3× | log-div |
| 3× | pow1 |
| 2× | log1p-expm1-u |
| 2× | flip-+ |
| 2× | distribute-rgt1-in |
| 2× | frac-add |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 2× | expm1-log1p-u |
| 1× | log-pow |
| 1× | rem-log-exp |
| 1× | sum-log |
| 1× | +-commutative |
| 5.0ms | (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)) |
| 3.0ms | (log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))) |
| 112.0ms | (log (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x))) |
| 31.0ms | (+ (/ 1 x) (/ (sqrt (- 1 (* x x))) x)) |
| 462.0ms | (- (log 2) (+ (* 1/4 (pow x 2)) (+ (* 3/32 (pow x 4)) (log x)))) |
| 312.0ms | (log (- (* (/ 1 x) (/ 1 x)) (* (/ (sqrt (- 1 (* x x))) x) (/ (sqrt (- 1 (* x x))) x)))) |
| 285.0ms | (- (/ 1 x) (+ (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))) (sqrt -1))) |
| 232.0ms | (- (* 2 (/ 1 x)) (+ (* 1/2 x) (* 1/8 (pow x 3)))) |
| 230.0ms | (log (+ (pow (/ 1 x) 3) (pow (/ (sqrt (- 1 (* x x))) x) 3))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.6b | (* (cbrt (/ 1 x)) (cbrt (/ 1 x))) |
| 0.5b | (cbrt (/ 1 x)) |
| 0.5b | (cbrt (/ 1 x)) |
| 0.5b | (cbrt (/ 1 x)) |
| 20× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | pow1 |
| 7× | associate-*l* |
| 7× | associate-*r* |
| 7× | pow1/3 |
| 7× | cbrt-div |
| 6× | add-exp-log |
| 5× | div-inv |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-plus |
| 1× | frac-times |
| 1× | pow2 |
| 9.0ms | (* (cbrt (/ 1 x)) (cbrt (/ 1 x))) |
| 1.0ms | (cbrt (/ 1 x)) |
| 1.0ms | (cbrt (/ 1 x)) |
| 1.0ms | (cbrt (/ 1 x)) |
| 305.0ms | (cbrt (/ 1 x)) |
| 300.0ms | (* (cbrt (/ 1 x)) (cbrt (/ 1 x))) |
| 269.0ms | (cbrt (/ 1 x)) |
| 260.0ms | (cbrt (/ 1 x)) |
| 23.0ms | (* (pow (/ 1 (pow x 2)) 1/3) (pow (cbrt -1) 2)) |
| 12.0ms | (* (/ 1 x) (/ 1 x)) |
| 6.0ms | (* (pow (/ -1 x) 1/3) (cbrt -1)) |
| 6.0ms | (* (pow (/ -1 x) 1/3) (cbrt -1)) |
| 6.0ms | (* (pow (/ -1 x) 1/3) (cbrt -1)) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.1b against oracle of 0.1b and baseline of 0.1b
| 3.5s | 24239× | body | 80 | nan |
| 1.2s | 8000× | body | 80 | valid |