U
    :qLe="                     @   s  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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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ZyejzZzej{Z{ej|Z|ej}Z}ej~Z~ejZdd Zg fd	d
Zedkr|e  dS )z1.3.0   )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/../..)	Zos.pathinspectr	   testsr
   pathdirnameabspathZtestit)osr	   r   ZtestdirZ	importdir r   f/home/p21-0144/sympy/latex2sympy2solve-back-end/sympyEq/lib/python3.8/site-packages/mpmath/__init__.pyr
     s    r
   c           	         s   dd l }ddlm} t|jD ]0\}}d|k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kd
 | }tt|| d qfd S )Nr   )default_timerz__init__.pyc                 S   s   g | ]}| d s|qS )-)
startswith).0Zsnr   r   r   
<listcomp>  s     
 zdoctests.<locals>.<listcomp>r   c                    s   g | ]}| kqS r   r   )r   Zpatobjr   r   r     s      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$    

r/   __main__N(  __version__Z	usertoolsr   r   Zctx_fpr   r   r   Zctx_ivr   fpmpZivZ_mpZ_fpZ_iv Z_ctx_mpZmpfZ_mpf_moduleZmpcZmake_mpfZmake_mpcZ	extraprecZextradpsZworkprecZworkdpsZautoprecZmaxcallsZmemoizeZmagZbernfracZqfromZmfromZkfromZtaufromZqbarfromZellipfunZjthetaZkleinjZetaZqpZqhyperZqgammaZqfacZnint_distanceplotZcplotZsplotZodefunZjacobianZfindrootmultiplicityZisinfZisnanZisnormalZisintZisfiniteZalmosteqnanZrandZabsminZabsmaxfractionZlinspaceZarangeZconvertZ	mpmathifyZ_mpiZmpiZnstrZnprintZchopZfnegZfaddZfsubZfmulZfdivZfprodZquadZquadglZquadtsZquadoscZ
quadsubdivZinvertlaplaceZinvlaptalbotZinvlapstehfestZinvlapdehoogZpslqZ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limitmatrixeyediagzerosonesZhilbertZ
randmatrixZswap_rowextendnormZmnormZlu_solveZluZqrZ
unitvectorZinverseZresidualZqr_solveZcholeskyZcholesky_solvedetZcondZ
hessenbergZschureigZeig_sortZeigsyZeigheZeighZsvd_rZsvd_csvdZgauss_quadratureZexpmZsqrtmZpowmZlogmZsinmZcosmjexpZexpjZexpjpilnimreinfZninfsignZepspiZln2Zln10ZphieeulercatalanZkhinchinZglaisherZaperydegreeZ	twinprimeZmertensZldexpZfrexpZfsumZfdotsqrtcbrtlogZlog10ZpowercossintancoshsinhtanhacosasinatanasinhacoshatanhseccsccotsechcschcothasecacscacotasechacschacothZcospiZsinpisincZsincpiZcos_sinZcospi_sinpiZfabsZconjfloorceilZnintfracrootZnthrootZhypotZfmodr,   ZphaseZpolarZrectZdegreesZradiansatan2Zfib	fibonacciZlambertwzetaZaltzetagammaZrgamma	factorialZfacZfac2betabetaincZpsi	polygammadigammaharmonic	bernoulli	stieltjesZhurwitzZ	dirichletZbernpolyZ	eulerpolyZeulernumpolylogZclsinZclcosZgammaincZ	gammaprodbinomialrfffhyperZhyp0f1Zhyp1f1Zhyp1f2Zhyp2f1Zhyp2f2Zhyp2f0Zhyp2f3Zhyp3f2ZhyperuZ	hypercombmeijergappellf1Zappellf2Zappellf3Zappellf4Zhyper2dZbihypererferfcerfierfinvZnpdfZncdfexpintZe1ZeiliZciZsiZchiZshifresnelsfresnelcairyaiairybiZ
airyaizeroZ
airybizeroZscorergiZscorerhiZellipkZellipeZellipfZellippiZelliprcZelliprjZelliprfZelliprdZelliprgZagmjacobiZchebytZchebyulegendreZlegenpZlegenqhermiteZpcfdZpcfuZpcfvZpcfw
gegenbauerlaguerreZ	spherharmbesseljZj0Zj1besselibesselybesselkZbesseljzeroZbesselyzerohankel1hankel2ZstruvehZstruvelZangerjZwebereZlommels1Zlommels2ZwhitmZwhitwZberZbeiZkerZkeiZcoulombcZcoulombfZcoulombgZbarnesgZsuperfacZhyperfacloggammaZsiegelthetaZsiegelzZ	grampointZzetazeroZriemannrprimepiZprimepi2Z	primezetabellZpolyexpZexpm1Zlog1pZpowm1Z	unitrootsZ
cyclotomicZmangoldtZ
secondzetaZnzerosZ	backlundslerchphiZ	stirling1Z	stirling2ZsquarewZ	trianglewZ	sawtoothwZunit_triangleZsigmoidr
   r/   __name__r   r   r   r   <module>   s  



































































































































