+
    .åûjØ  ã                   ó`   € R t ^ RIHt ^ RIHt ^ RIHtHt ^ RIH	t	 ]	 ! R R]]4      4       t
R# )z0Implementation of :class:`FractionField` class. )ÚCompositeDomain)ÚField)ÚCoercionFailedÚGeneratorsError)Úpublicc                   ó  a € ] tR t^	t o RtR;ttRtRtR%R lt	R t
R t]R 4       t]R 4       t]R	 4       tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R t"R t#R t$R t%R  t&R! t'R" t(R# t)R$t*V t+R# )&ÚFractionFieldz@A class for representing multivariate rational function fields. TNc                ó4  € ^ RI Hp \        W4      '       d   Vf   Vf   TpM	V! W!V4      pWPn        VP                  V n        VP
                  V n        VP                  V n        VP                  V n        VP                  V n        V P                  V n	        R# )é    )Ú	FracFieldN)
Úsympy.polys.fieldsr   Ú
isinstanceÚfieldÚdtypeÚgensÚngensÚsymbolsÚdomainÚdom)ÚselfÚdomain_or_fieldr   Úorderr   r   s   &&&&  Ú]C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\sympy\polys\domains\fractionfield.pyÚ__init__ÚFractionField.__init__   sr   € Ý0ä�o×1Ò1°g²oÈ%Ê-Ø#‰Eá˜g¸Ó>ˆEàŒ
Ø—[‘[ˆŒ
à—J‘JˆŒ	Ø—[‘[ˆŒ
Ø—}‘}ˆŒØ—l‘lˆŒð —;‘;ˆŽó    c                ó8   € V P                   P                  V4      # ©N)r   Ú	field_new©r   Úelements   &&r   ÚnewÚFractionField.new%   s   € Ø�z‰z×#Ñ# GÓ,Ð,r   c                ó8   € V P                   P                  V4      # )z%Check if ``a`` is of type ``dtype``. )r   Ú
is_elementr   s   &&r   Úof_typeÚFractionField.of_type(   s   € à�z‰z×$Ñ$ WÓ-Ð-r   c                ó.   € V P                   P                  # r   )r   Úzero©r   s   &r   r(   ÚFractionField.zero,   s   € à�z‰z�‰Ðr   c                ó.   € V P                   P                  # r   )r   Úoner)   s   &r   r,   ÚFractionField.one0   s   € à�z‰z�~‰~Ðr   c                ó.   € V P                   P                  # r   )r   r   r)   s   &r   r   ÚFractionField.order4   s   € à�z‰z×ÑÐr   c                ó¤   € \        V P                  4      R ,           RP                  \        \         V P                  4      4      ,           R,           # )Ú(Ú,Ú))Ústrr   ÚjoinÚmapr   r)   s   &r   Ú__str__ÚFractionField.__str__8   s4   € Ü�4—;‘;Ó #Õ%¨¯©´´S¸$¿,¹,Ó1GÓ(HÕHÈ3ÕNÐNr   c                ó„   € \        V P                  P                  V P                  V P                  V P
                  34      # r   )ÚhashÚ	__class__Ú__name__r   r   r   r)   s   &r   Ú__hash__ÚFractionField.__hash__;   s,   € Ü�T—^‘^×,Ñ,¨d¯j©j¸$¿+¹+ÀtÇ|Á|ÐTÓUÐUr   c                ól   € \        V\        4      '       g   \        # V P                  VP                  8H  # )z0Returns ``True`` if two domains are equivalent. )r   r   ÚNotImplementedr   )r   Úothers   &&r   Ú__eq__ÚFractionField.__eq__>   s(   € ä˜%¤×/Ò/Ü!Ð!Ø�z‰z˜UŸ[™[Ñ(Ð(r   c                ó"   € VP                  4       # )z!Convert ``a`` to a SymPy object. )Úas_expr©r   Úas   &&r   Úto_sympyÚFractionField.to_sympyD   s   € à�y‰y‹{Ðr   c                ó8   € V P                   P                  V4      # )z)Convert SymPy's expression to ``dtype``. )r   Ú	from_exprrF   s   &&r   Ú
from_sympyÚFractionField.from_sympyH   s   € à�z‰z×#Ñ# AÓ&Ð&r   c                óD   € V ! V P                   P                  W4      4      # ©z.Convert a Python ``int`` object to ``dtype``. ©r   Úconvert©ÚK1rG   ÚK0s   &&&r   Úfrom_ZZÚFractionField.from_ZZL   ó   € á�"—)‘)×#Ñ# AÓ*Ó+Ð+r   c                óD   € V ! V P                   P                  W4      4      # rO   rP   rR   s   &&&r   Úfrom_ZZ_pythonÚFractionField.from_ZZ_pythonP   rW   r   c                óô   € V P                   pVP                  pVP                  '       dB   V ! V! VP                  V4      V4      4      V ! V! VP	                  V4      V4      4      ,          # V ! V! W4      4      # ©z3Convert a Python ``Fraction`` object to ``dtype``. )r   Úconvert_fromÚis_ZZÚnumerÚdenom)rS   rG   rT   r   Úconvs   &&&  r   Úfrom_QQÚFractionField.from_QQT   s`   € à�i‰iˆØ×ÑˆØ�9�9ˆ9Ù‘d˜2Ÿ8™8 A›;¨Ó+Ó,©r±$°r·x±xÀ³{ÀBÓ2GÓ/HÕHÐHá‘d˜1“k“?Ð"r   c                óD   € V ! V P                   P                  W4      4      # r\   rP   rR   s   &&&r   Úfrom_QQ_pythonÚFractionField.from_QQ_python]   rW   r   c                óD   € V ! V P                   P                  W4      4      # )z,Convert a GMPY ``mpz`` object to ``dtype``. rP   rR   s   &&&r   Úfrom_ZZ_gmpyÚFractionField.from_ZZ_gmpya   rW   r   c                óD   € V ! V P                   P                  W4      4      # )z,Convert a GMPY ``mpq`` object to ``dtype``. rP   rR   s   &&&r   Úfrom_QQ_gmpyÚFractionField.from_QQ_gmpye   rW   r   c                óD   € V ! V P                   P                  W4      4      # )z4Convert a ``GaussianRational`` object to ``dtype``. rP   rR   s   &&&r   Úfrom_GaussianRationalFieldÚ(FractionField.from_GaussianRationalFieldi   rW   r   c                óD   € V ! V P                   P                  W4      4      # )z3Convert a ``GaussianInteger`` object to ``dtype``. rP   rR   s   &&&r   Úfrom_GaussianIntegerRingÚ&FractionField.from_GaussianIntegerRingm   rW   r   c                óD   € V ! V P                   P                  W4      4      # ©z.Convert a mpmath ``mpf`` object to ``dtype``. rP   rR   s   &&&r   Úfrom_RealFieldÚFractionField.from_RealFieldq   rW   r   c                óD   € V ! V P                   P                  W4      4      # rt   rP   rR   s   &&&r   Úfrom_ComplexFieldÚFractionField.from_ComplexFieldu   rW   r   c                óˆ   € V P                   V8w  d   V P                   P                  W4      pVe   V P                  V4      # R# )z*Convert an algebraic number to ``dtype``. N)r   r]   r!   rR   s   &&&r   Úfrom_AlgebraicFieldÚ!FractionField.from_AlgebraicFieldy   s9   € à�9‰9˜Œ?Ø—	‘	×&Ñ& qÓ-ˆAØŠ=Ø—6‘6˜!“9Ðñ r   c                ój  € VP                   '       d,   V P                  VP                  ^4      VP                  4      #  V P	                  VP                  V P                  P                  4      4      #   \        \        3 d/     T P	                  T4      u #   \        \        3 d      R# i ; ii ; i)z#Convert a polynomial to ``dtype``. N)
Ú	is_groundr]   Úcoeffr   r!   Úset_ringr   Úringr   r   rR   s   &&&r   Úfrom_PolynomialRingÚ!FractionField.from_PolynomialRing€   s‹   € à�;�;ˆ;Ø—?‘? 1§7¡7¨1£:¨r¯y©yÓ9Ð9ð
	Ø—6‘6˜!Ÿ*™* R§X¡X§]¡]Ó3Ó4Ð4øÜ¤Ð0ô 	ð
Ø—v‘v˜a“yÒ øÜ"¤OÐ4ô Ûðúð	ús/   ¿3A3 Á3B2ÂBÂB2ÂB.Â)B2Â-B.Â.B2c                ój   €  VP                  V P                  4      #   \        \        3 d     R# i ; i)z*Convert a rational function to ``dtype``. N)Ú	set_fieldr   r   r   rR   s   &&&r   Úfrom_FractionFieldÚ FractionField.from_FractionField�   s1   € ð	Ø—;‘;˜rŸx™xÓ(Ð(øÜ¤Ð0ô 	Úð	ús   ‚ �2±2c                óR   € V P                   P                  4       P                  4       # )z*Returns a field associated with ``self``. )r   Úto_ringÚ	to_domainr)   s   &r   Úget_ringÚFractionField.get_ring—   s   € à�z‰z×!Ñ!Ó#×-Ñ-Ó/Ð/r   c                ó`   € V P                   P                  VP                  P                  4      # )z'Returns True if ``LC(a)`` is positive. )r   Úis_positiver_   ÚLCrF   s   &&r   rŽ   ÚFractionField.is_positive›   ó   € à�{‰{×&Ñ& q§w¡w§z¡zÓ2Ð2r   c                ó`   € V P                   P                  VP                  P                  4      # )z'Returns True if ``LC(a)`` is negative. )r   Úis_negativer_   r�   rF   s   &&r   r“   ÚFractionField.is_negativeŸ   r‘   r   c                ó`   € V P                   P                  VP                  P                  4      # )z+Returns True if ``LC(a)`` is non-positive. )r   Úis_nonpositiver_   r�   rF   s   &&r   r–   ÚFractionField.is_nonpositive£   ó   € à�{‰{×)Ñ)¨!¯'©'¯*©*Ó5Ð5r   c                ó`   € V P                   P                  VP                  P                  4      # )z+Returns True if ``LC(a)`` is non-negative. )r   Úis_nonnegativer_   r�   rF   s   &&r   rš   ÚFractionField.is_nonnegative§   r˜   r   c                ó   € VP                   # )zReturns numerator of ``a``. )r_   rF   s   &&r   r_   ÚFractionField.numer«   ó   € à�w‰wˆr   c                ó   € VP                   # )zReturns denominator of ``a``. )r`   rF   s   &&r   r`   ÚFractionField.denom¯   rž   r   c                óV   € V P                  V P                  P                  V4      4      # )zReturns factorial of ``a``. )r   r   Ú	factorialrF   s   &&r   r¢   ÚFractionField.factorial³   s    € à�z‰z˜$Ÿ+™+×/Ñ/°Ó2Ó3Ð3r   )r   r   r   r   r   r   r   )NN),r<   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úis_FractionFieldÚis_FracÚhas_assoc_RingÚhas_assoc_Fieldr   r!   r%   Úpropertyr(   r,   r   r7   r=   rB   rH   rL   rU   rY   rb   re   rh   rk   rn   rq   ru   rx   r{   r‚   r†   r‹   rŽ   r“   r–   rš   r_   r`   r¢   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r   	   sñ   ø‡ € áJà!%Ð%Ð�wà€NØ€Oôò&-ò.ð ñó ðð ñó ðð ñ ó ð òOòVò)òò'ò,ò,ò#ò,ò,ò,ò,ò,ò,ò,òòò ò0ò3ò3ò6ò6òò÷4ð 4r   r   N)r§   Ú#sympy.polys.domains.compositedomainr   Úsympy.polys.domains.fieldr   Úsympy.polys.polyerrorsr   r   Úsympy.utilitiesr   r   © r   r   Ú<module>rµ      s5   ðÙ 6õ @Ý +ß BÝ "àôk4�E˜?ó k4ó òk4r   