L iFTdZ ddlZdZdZdZedk(reyy#e$rYwxYw)z-Precompute series coefficients for log-Gamma.Nctjd5td|dzDcgc])}tjd|zd|zd|zdz zz +}}ddd|Scc}w#1swYSxYw)Nd)mpmathworkdpsrange bernoulli)Nncoeffss h/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/scipy/special/_precompute/loggamma.pystirling_seriesr s|  , AE?,""1Q3'1acAg7,,, M,, MsA'.A"A'"A''A1c$g}tjd5|jtj t d|dzD]/}|jd|ztj |z|z 1 ddd|S#1swY|SxYw)Nrrr)rrappendeulerr zeta)r r r s rtaylor_series_at_1rs~ F  4 v||m$q!a% 4A MM2'&++a.02 3 44 M 4 Ms A"BBc ttttddddDcgc]}tj|ddd}}t ddddDcgc]}tj|ddd}}tdtdtd j |ttd td td j |tycc}wcc}w) Nrr) min_fixed max_fixedzStirling series coefficientsz---------------------------- zTaylor series coefficientsz--------------------------)print__doc__rrnstrrjoin)xstirling_coeffs taylor_coeffss rmainr$s 'N G / 24R4 8:{{1bAC:O:14TrT:<[[B!qA__main__)rr ImportErrorrrr$__name__rr*sH3   " zFK  s ''