a
    <b!                     @   sD  d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 e Z
e Ze	 Zee
_ee_ee_e
e_e
e
_ee_ee
_ee_ddlmZ ejej_ejej_ejZejZejZejZejZejZejZejZejZejZejZej Z ej!Z!ej"Z"ej#Z#ej$Z$ej%Z%ej&Z&ej'Z'ej(Z(ej)Z)ej*Z*ej+Z+ej,Z,ej-Z-ej.Z.ej/Z/ej0Z0ej1Z1ej2Z2ej3Z3ej4Z4ej5Z5ej6Z6ej7Z7ej8Z8ej9Z9ej:Z:ej;Z;ej<Z<ej=Z=ej>Z>ej?Z?ej@Z@ejAZAejB ZCZBejZejDZEejFZFejGZGejHZHejIZIejJZJejKZKejLZLejMZMejNZNejOZOejPZPejQZQejRZRejSZSejTZTejUZUejVZVejWZWejXZXejYZYejZZZej[Z[ej\Z\ej]Z]ej^Z^ej_Z_ej`Z`ejaZaejbZbejcZcejdZdejeZeejfZfejgZgejhZhejiZiejjZjejkZkejlZlejmZmejnZnejoZoejpZpejqZqejrZrejsZsejtZtejuZuejvZvejwZwejxZxejyZyejzZzej{Z{ej|Z|ej}Z}ej~Z~ejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZej Z ejZejZejZejZejZejZejZejZej	Z	ej
Z
ejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZej Z ej!Z!ej"Z"ej#Z#ej$Z$ej%Z%ej&Z&ej'Z'ej(Z(ej)Z)ej*Z*ej+Z+ej,Z,ej-Z-ej.Z.ej/Z/ej0Z0ej1Z1ej2Z2ej3Z3ej4Z4ej5Z5ej6Z6ej7Z7ej8Z8ej9Z9ej:Z:ej;Z;ej<Z<ej=Z=ej>Z>ej?Z?ej@Z@ejAZAejBZBejCZCejDZDejEZEejFZFejGZGejHZHejIZIejJZJejKZKejLZLejMZMejNZNejOZOejPZPejQZQejRZRejSZSejTZTejUZUejVZVejWZWejXZXejYZYejZZZej[Z[ej\Z\ej]Z]ej^Z^ej_Z_ej`Z`ejaZaejbZbejcZcejdZdejeZeejfZfejgZgejhZhejiZiejjZjejkZkejlZlejmZmejnZnejoZoejpZpejqZqejrZrejsZsejtZtejuZuejvZvejwZwejxZxejyZydd Zzg fd	d
Z{e|dkr@e{  dS )z1.2.1   )monitortiming)	FPContext)	MPContext)MPIntervalContext)ctx_mpc                  C   sX   ddl } ddlm} ddlm} | j| j||}| j|d }||| dS )z0
    Run all mpmath tests and print output.
        N)getsourcefiler   )runtestsz/../..)	os.pathinspectr	   testsr
   pathdirnameabspathZtestit)osr	   r   ZtestdirZ	importdir r   _/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/mpmath/__init__.pyr
     s    r
   c           	         s   dd l }ddlm} t|jD ]0\}}d|v rdd |j|d d  D }  qPqdd l}t  }|D ]v | rt fdd| D sqf|j	
t d  |j	  | }|j|  i d	|jv d
 | }tt|| d qfd S )Nr   )default_timerz__init__.pyc                 S   s   g | ]}| d s|qS )-)
startswith).0Zsnr   r   r   
<listcomp>      zdoctests.<locals>.<listcomp>r   c                    s   g | ]}| v qS r   r   )r   patobjr   r   r     r    z-v)verbose   )sysZtimeitr   	enumerateargvdoctestglobalscopysumstdoutwritestrflushZrun_docstring_examplesprintround)	filterr    Zclockiargr#   Zglobst1t2r   r   r   doctests  s$    

r2   __main__N(}  __version__Z	usertoolsr   r   Zctx_fpr   r   r   Zctx_ivr   fpmpZivZ_mp_fpZ_iv Z_ctx_mpZmpfZ_mpf_moduleZmpcZmake_mpfZmake_mpcZ	extraprecZextradpsZworkprecZworkdpsZautoprecZmaxcallsmemoizeZmagZbernfracZqfromZmfromZkfromZtaufromZqbarfromZellipfunZjthetaZkleinjetaZqpZqhyperZqgammaZqfacZnint_distanceZplotZcplotZsplotZodefunZjacobianZfindrootZmultiplicityisinfisnanZisnormalZisintisfiniteZalmosteqnanZrandZabsminZabsmaxfractionZlinspaceZarangeconvertZ	mpmathifyZ_mpiZmpiZnstrZnprintZchopZfnegZfaddZfsubZfmulZfdivZfprodZquadZquadglZquadtsZquadoscZinvertlaplaceZinvlaptalbotZinvlapstehfestZinvlapdehoogZpslqidentifyZfindpolyZ
richardsonZshanksZlevinZ	cohen_altZnsumZnprod
differencediffZdiffsZ
diffs_prodZ	diffs_expZdiffunZ	differintZtaylorZpadeZpolyvalZ	polyrootsZfourierZ
fouriervalZsumemZsumapZchebyfitlimitZmatrixZeyeZdiagZzerosZonesZhilbertZ
randmatrixZswap_rowextendZnormZmnormZlu_solveZluZqrZ
unitvectorZinverseZresidualZqr_solveZcholeskyZcholesky_solveZdetZcondZ
hessenbergZschurZeigZeig_sortZeigsyZeigheZeighZsvd_rZsvd_cZsvdZgauss_quadratureZexpmZsqrtmZpowmZlogmZsinmZcosmjexpZexpjZexpjpilnZimreinfZninfsignZepspiZln2Zln10phieZeulercatalanZkhinchinZglaisherZaperyZdegreeZ	twinprimeZmertensldexpfrexpfsumZfdotsqrtZcbrtloglog10powercossintancoshsinhtanhacosasinatanasinhacoshatanhsecZcscZcotZsechZcschZcothZasecZacscZacotZasechZacschZacothZcospiZsinpiZsincZsincpiZcos_sinZcospi_sinpifabsZconjfloorceilZnintfracrootZnthroothypotfmodr/   phaseZpolarZrectdegreesradiansatan2ZfibZ	fibonacciZlambertwzetaZaltzetagammaZrgamma	factorialZfacZfac2betaZbetaincpsiZ	polygammaZdigammaZharmonicZ	bernoulliZ	stieltjesZhurwitzZ	dirichletZbernpolyZ	eulerpolyZeulernumZpolylogZclsinZclcosZgammaincZ	gammaprodZbinomialrfffZhyperZhyp0f1Zhyp1f1Zhyp1f2Zhyp2f1Zhyp2f2Zhyp2f0Zhyp2f3Zhyp3f2ZhyperuZ	hypercombZmeijergZappellf1Zappellf2Zappellf3Zappellf4Zhyper2dZbihypererferfcZerfiZerfinvZnpdfZncdfZexpinte1eilicisichiZshiZfresnelsZfresnelcZairyaiZairybiZ
airyaizeroZ
airybizeroZscorergiZscorerhiZellipkZellipeZellipfZellippiZelliprcZelliprjZelliprfZelliprdZelliprgZagmZjacobiZchebytZchebyuZlegendreZlegenpZlegenqZhermiteZpcfdZpcfuZpcfvZpcfwZ
gegenbauerZlaguerreZ	spherharmZbesseljZj0Zj1ZbesseliZbesselyZbesselkZbesseljzeroZbesselyzeroZhankel1Zhankel2ZstruvehZstruvelZangerjZwebereZlommels1Zlommels2ZwhitmZwhitwZberZbeiZkerZkeiZcoulombcZcoulombfZcoulombgZbarnesgZsuperfacZhyperfacZloggammaZsiegelthetaZsiegelzZ	grampointZzetazeroZriemannrZprimepiZprimepi2Z	primezetaZbellZpolyexpexpm1log1pZpowm1Z	unitrootsZ
cyclotomicZmangoldtZ
secondzetaZnzerosZ	backlundsZlerchphiZ	stirling1Z	stirling2r
   r2   __name__r   r   r   r   <module>   s  





























































































































