+
    .åûjj  ã                   ój   € R t ^ RIHtHtHtHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ] ! R R]	4      4       tR# )z4Implementation of :class:`GMPYRationalField` class. )ÚGMPYRationalÚSymPyRationalÚ
gmpy_numerÚ
gmpy_denomÚ	factorial)ÚRationalField)ÚCoercionFailed)Úpublicc                   óÂ   a € ] tR t^t o Rt]t]! ^ 4      t]! ^4      t]	! ]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V tR# )ÚGMPYRationalFieldz©Rational field based on GMPY's ``mpq`` type.

This will be the implementation of :ref:`QQ` if ``gmpy`` or ``gmpy2`` is
installed. Elements will be of type ``gmpy.mpq``.
ÚQQ_gmpyc                ó   € R # )N© )Úselfs   &ÚaC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\sympy\polys\domains\gmpyrationalfield.pyÚ__init__ÚGMPYRationalField.__init__   s   € Ùó    c                ó   € ^ RI Hp V! 4       # )z'Returns ring associated with ``self``. )ÚGMPYIntegerRing)Úsympy.polys.domainsr   )r   r   s   & r   Úget_ringÚGMPYRationalField.get_ring   s   € å7ÙÓ Ð r   c                ób   € \        \        \        V4      4      \        \        V4      4      4      # )z!Convert ``a`` to a SymPy object. )r   Úintr   r   ©r   Úas   &&r   Úto_sympyÚGMPYRationalField.to_sympy"   s&   € äœS¤¨A£Ó/Ü ¤¨A£Ó/ó1ð 	1r   c                ó  € VP                   '       d!   \        VP                  VP                  4      # VP                  '       d-   ^ RIHp \        \        \        VP                  V4      4      !  # \        RV,          4      h)z&Convert SymPy's Integer to ``dtype``. )ÚRRz$expected ``Rational`` object, got %s)Úis_Rationalr   ÚpÚqÚis_Floatr   r    Úmapr   Úto_rationalr   )r   r   r    s   && r   Ú
from_sympyÚGMPYRationalField.from_sympy'   sX   € à�=�=ˆ=Ü §¡ Q§S¡SÓ)Ð)Ø�Z�ZˆZÝ.Ü¤¤S¨"¯.©.¸Ó*;Ó!<Ñ=Ð=ä Ð!GÈ!Õ!KÓLÐLr   c                ó   € \        V4      # )z.Convert a Python ``int`` object to ``dtype``. ©r   ©ÚK1r   ÚK0s   &&&r   Úfrom_ZZ_pythonÚ GMPYRationalField.from_ZZ_python1   ó   € ä˜A‹Ðr   c                óB   € \        VP                  VP                  4      # )z3Convert a Python ``Fraction`` object to ``dtype``. )r   Ú	numeratorÚdenominatorr+   s   &&&r   Úfrom_QQ_pythonÚ GMPYRationalField.from_QQ_python5   s   € ä˜AŸK™K¨¯©Ó7Ð7r   c                ó   € \        V4      # )z,Convert a GMPY ``mpz`` object to ``dtype``. r*   r+   s   &&&r   Úfrom_ZZ_gmpyÚGMPYRationalField.from_ZZ_gmpy9   r0   r   c                ó   € V# )z,Convert a GMPY ``mpq`` object to ``dtype``. r   r+   s   &&&r   Úfrom_QQ_gmpyÚGMPYRationalField.from_QQ_gmpy=   s   € àˆr   c                óR   € VP                   ^ 8X  d   \        VP                  4      # R# )z3Convert a ``GaussianElement`` object to ``dtype``. N)Úyr   Úxr+   s   &&&r   Úfrom_GaussianRationalFieldÚ,GMPYRationalField.from_GaussianRationalFieldA   s!   € à�3‰3�!Œ8Ü §¡Ó$Ð$ñ r   c                óN   € \        \        \        VP                  V4      4      !  # )z.Convert a mpmath ``mpf`` object to ``dtype``. )r   r%   r   r&   r+   s   &&&r   Úfrom_RealFieldÚ GMPYRationalField.from_RealFieldF   s   € äœS¤ b§n¡n°QÓ&7Ó8Ñ9Ð9r   c                ó8   € \        V4      \        V4      ,          # )z=Exact quotient of ``a`` and ``b``, implies ``__truediv__``.  r*   ©r   r   Úbs   &&&r   ÚexquoÚGMPYRationalField.exquoJ   ó   € ä˜A‹¤¨a£Õ0Ð0r   c                ó8   € \        V4      \        V4      ,          # )z6Quotient of ``a`` and ``b``, implies ``__truediv__``. r*   rE   s   &&&r   ÚquoÚGMPYRationalField.quoN   rI   r   c                ó   € V P                   # )z0Remainder of ``a`` and ``b``, implies nothing.  )ÚzerorE   s   &&&r   ÚremÚGMPYRationalField.remR   s   € à�y‰yÐr   c                óP   € \        V4      \        V4      ,          V P                  3# )z6Division of ``a`` and ``b``, implies ``__truediv__``. )r   rN   rE   s   &&&r   ÚdivÚGMPYRationalField.divV   s   € ä˜A‹¤¨a£Õ0°$·)±)Ð;Ð;r   c                ó   € VP                   # )zReturns numerator of ``a``. )r2   r   s   &&r   ÚnumerÚGMPYRationalField.numerZ   s   € à�{‰{Ðr   c                ó   € VP                   # )zReturns denominator of ``a``. )r3   r   s   &&r   ÚdenomÚGMPYRationalField.denom^   s   € à�}‰}Ðr   c                ó<   € \        \        \        V4      4      4      # )zReturns factorial of ``a``. )r   Úgmpy_factorialr   r   s   &&r   r   ÚGMPYRationalField.factorialb   s   € äœN¬3¨q«6Ó2Ó3Ð3r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   ÚdtyperN   ÚoneÚtypeÚtpÚaliasr   r   r   r'   r.   r4   r7   r:   r?   rB   rG   rK   rO   rR   rU   rX   r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      sŒ   ø‡ € ñð €EÙ�‹8€DÙ
�‹(€CÙ	ˆc‹€BØ€Eòò!ò
1ò
Mòò8òòò%ò
:ò1ò1òò<òò÷4ð 4r   r   N)ra   Úsympy.polys.domains.groundtypesr   r   r   r   r   r[   Ú!sympy.polys.domains.rationalfieldr   Úsympy.polys.polyerrorsr   Úsympy.utilitiesr	   r   r   r   r   Ú<module>rn      s9   ðÙ :÷õ õ <Ý 1Ý "àôW4˜ó W4ó òW4r   