+
    .åûj8  ã                   ó¶   € R t ^ RIHtHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHt RR
 lt] ! R R]]]	4      4       t]! 4       tR# )z,Implementation of :class:`RealField` class. )Ú
SYMPY_INTSÚMPQ)ÚFloat)ÚField)ÚSimpleDomain)ÚCharacteristicZero)ÚCoercionFailed)Úpublic)Ú	MPContext)Úto_rationalc                 ó~  € \        V P                  4      w  r4\        V4      p\        V4      pV'       d   WA8:  d   W43# Rw  rVrxY4r© Wš,          pWkV,          ,           pWÁ8”  d   M&WxW[V,          ,           V3w  rVrxY©Wº,          ,
          r©KE  W,
          V,          p\        W44      p\        W]V,          ,           WmV,          ,           4      p\        Wx4      pV'       d	   V'       g   W43# \	        VV,
          4      \	        Wþ,
          4      8:  d   VP
                  VP                  3# VP
                  VP                  3# )é    )r   é   r   r   )Ú_mpmath_to_rationalÚ_mpf_Úintr   ÚabsÚ	numeratorÚdenominator)ÚsÚ	max_denomÚlimitÚpÚqÚp0Úq0Úp1Úq1ÚnÚdÚaÚq2ÚkÚnumberÚbound1Úbound2s   &&&              ÚYC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\sympy\polys\domains\realfield.pyr   r      s  € ä˜qŸw™wÓ'�D€Aô
 	ˆA‹€AÜˆA‹€Aç�A”NØˆtˆà�N€BˆBØ€qà
Ø�DˆØ�B•$�YˆØŒ>ØØ ¨¥d¥¨BÐ.‰ˆ�Ø�a•c•'Š1à	�˜"Õ€Aä�‹Y€FÜ�˜•d•˜B 2¥�IÓ&€FÜ�‹[€FçŸØˆtˆÜ	ˆV�f�_Ó	¤ V¥_Ó!5Ô	5Ø×Ñ ×!3Ñ!3Ð3Ð3à×Ñ ×!3Ñ!3Ð3Ð3ó    c                   ó.  a € ] tR t^6t o RtRtR;ttRtRt	Rt
RtRt^5t]R 4       t]R 4       t]R 4       t]R 4       tR#R
 l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$R lt#R t$R t%R t&R t'R%R lt(R  t)R! t*R"t+V t,R	# )&Ú	RealFieldz(Real numbers up to the given precision. ÚRRTFc                ó4   € V P                   V P                  8H  # ©N)Ú	precisionÚ_default_precision©Úselfs   &r&   Úhas_default_precisionÚRealField.has_default_precisionG   s   € à�~‰~ ×!8Ñ!8Ñ8Ð8r'   c                ó.   € V P                   P                  # r,   )Ú_contextÚprecr/   s   &r&   r-   ÚRealField.precisionK   s   € à�}‰}×!Ñ!Ð!r'   c                ó.   € V P                   P                  # r,   )r4   Údpsr/   s   &r&   r8   ÚRealField.dpsO   s   € à�}‰}× Ñ Ð r'   c                ó   € V P                   # r,   )Ú
_tolerancer/   s   &r&   Ú	toleranceÚRealField.toleranceS   s   € à�‰Ðr'   Nc                ó¬  € \        4       pVf   Vf   V P                  Vn        M!Vf   Wn        MVf   W$n        M\	        R4      hW@n        VP                  V n        V P                  ^ 4      V n	        V P                  ^4      V n
        \        ^VP                  ,          ^È,          ^c4      V n        V P                  V P                  ,          V n        R # )NzCannot set both prec and dps)r
   r.   r5   r8   Ú	TypeErrorr4   ÚmpfÚ_dtypeÚdtypeÚzeroÚoneÚmaxÚ
_max_denomr;   )r0   r5   r8   ÚtolÚcontexts   &&&& r&   Ú__init__ÚRealField.__init__W   s    € ô “+ˆàŠ<˜CšKØ×2Ñ2ˆG�LØŠ[Ø�LØŠ\Ø�KäÐ:Ó;Ð;àŒà—k‘kˆŒØ—J‘J˜q“MˆŒ	Ø—:‘:˜a“=ˆŒô ˜a §¡�o°Õ4°bÓ9ˆŒØŸ(™( T§_¡_Õ4ˆŽr'   c                ó   € V P                   # r,   )rA   r/   s   &r&   ÚtpÚRealField.tpq   s   € ð �{‰{Ðr'   c                óf   € \        V\        4      '       d   \        V4      pV P                  V4      # r,   )Ú
isinstancer   r   rA   )r0   Úargs   &&r&   rB   ÚRealField.dtypey   s)   € ô �cœ:×&Ò&Ü�c“(ˆCØ�{‰{˜3ÓÐr'   c                ód   € \        V\        4      ;'       d    V P                  VP                  8H  # r,   )rO   r)   r-   )r0   Úothers   &&r&   Ú__eq__ÚRealField.__eq__�   s$   € Ü˜%¤Ó+×QÐQ°·±À%Ç/Á/Ñ0QÐQr'   c                ón   € \        V P                  P                  V P                  V P                  34      # r,   )ÚhashÚ	__class__Ú__name__rA   r-   r/   s   &r&   Ú__hash__ÚRealField.__hash__„   s&   € Ü�T—^‘^×,Ñ,¨d¯k©k¸4¿>¹>ÐJÓKÐKr'   c                ó,   € \        WP                  4      # )z%Convert ``element`` to SymPy number. )r   r8   )r0   Úelements   &&r&   Úto_sympyÚRealField.to_sympy‡   s   € ä�WŸh™hÓ'Ð'r'   c                ó¤   € VP                  V P                  R7      pVP                  '       d   V P                  V4      # \	        RV,          4      h)z%Convert SymPy's number to ``dtype``. )r   zexpected real number, got %s)Úevalfr8   Ú	is_NumberrB   r   )r0   Úexprr#   s   && r&   Ú
from_sympyÚRealField.from_sympy‹   sB   € à—‘˜dŸh™h�Ó'ˆà××ÐØ—:‘:˜fÓ%Ð%ä Ð!?À$Õ!FÓGÐGr'   c                ó$   € V P                  V4      # r,   ©rB   ©r0   r]   Úbases   &&&r&   Úfrom_ZZÚRealField.from_ZZ”   ó   € Ø�z‰z˜'Ó"Ð"r'   c                ó$   € V P                  V4      # r,   rg   rh   s   &&&r&   Úfrom_ZZ_pythonÚRealField.from_ZZ_python—   rl   r'   c                ó6   € V P                  \        V4      4      # r,   )rB   r   rh   s   &&&r&   Úfrom_ZZ_gmpyÚRealField.from_ZZ_gmpyš   s   € Ø�z‰zœ#˜g›,Ó'Ð'r'   c                ól   € V P                  VP                  4      \        VP                  4      ,          # r,   ©rB   r   r   r   rh   s   &&&r&   Úfrom_QQÚRealField.from_QQ¡   ó'   € Ø�z‰z˜'×+Ñ+Ó,¬s°7×3FÑ3FÓ/GÕGÐGr'   c                ól   € V P                  VP                  4      \        VP                  4      ,          # r,   rt   rh   s   &&&r&   Úfrom_QQ_pythonÚRealField.from_QQ_python¤   rw   r'   c                ó~   € V P                  \        VP                  4      4      \        VP                  4      ,          # r,   )rB   r   r   r   rh   s   &&&r&   Úfrom_QQ_gmpyÚRealField.from_QQ_gmpy§   s,   € Ø�z‰zœ#˜g×/Ñ/Ó0Ó1´C¸×8KÑ8KÓ4LÕLÐLr'   c                ót   € V P                  VP                  V4      P                  V P                  4      4      # r,   )rd   r^   ra   r8   rh   s   &&&r&   Úfrom_AlgebraicFieldÚRealField.from_AlgebraicFieldª   s)   € Ø�‰˜tŸ}™}¨WÓ5×;Ñ;¸D¿H¹HÓEÓFÐFr'   c                ó$   € V P                  V4      # r,   rg   rh   s   &&&r&   Úfrom_RealFieldÚRealField.from_RealField­   rl   r'   c                ó`   € VP                   '       g   V P                  VP                  4      # R # r,   )ÚimagrB   Úrealrh   s   &&&r&   Úfrom_ComplexFieldÚRealField.from_ComplexField°   s#   € Ø�|�|ˆ|Ø—:‘:˜gŸl™lÓ+Ð+ñ r'   c                ó0   € \        WP                  VR7      # )z*Convert a real number to rational number. )r   )r   rF   )r0   r]   r   s   &&&r&   r   ÚRealField.to_rational´   s   € ä˜7§O¡O¸5ÔAÐAr'   c                ó   € V # )z)Returns a ring associated with ``self``. © r/   s   &r&   Úget_ringÚRealField.get_ring¸   s   € àˆr'   c                ó   € ^ RI Hp V# )z2Returns an exact domain associated with ``self``. )ÚQQ)Úsympy.polys.domainsr�   )r0   r�   s   & r&   Ú	get_exactÚRealField.get_exact¼   s
   € å*Øˆ	r'   c                ó   € V P                   # )z Returns GCD of ``a`` and ``b``. )rD   ©r0   r    Úbs   &&&r&   ÚgcdÚRealField.gcdÁ   s   € à�x‰xˆr'   c                ó   € W,          # )z Returns LCM of ``a`` and ``b``. rŒ   r•   s   &&&r&   ÚlcmÚRealField.lcmÅ   s	   € à�sˆ
r'   c                ó:   € V P                   P                  WV4      # )z+Check if ``a`` and ``b`` are almost equal. )r4   Úalmosteq)r0   r    r–   r<   s   &&&&r&   r�   ÚRealField.almosteqÉ   s   € à�}‰}×%Ñ% a¨IÓ6Ð6r'   c                ó   € V^ 8¬  # )z8Returns ``True`` if ``a >= 0`` and ``False`` otherwise. rŒ   ©r0   r    s   &&r&   Ú	is_squareÚRealField.is_squareÍ   s   € à�A‰vˆr'   c                ó&   € V^ 8¼  d
   VR,          # R# )zªNon-negative square root for ``a >= 0`` and ``None`` otherwise.

Explanation
===========
The square root may be slightly inaccurate due to floating point
rounding error.
g      à?NrŒ   r    s   &&r&   ÚexsqrtÚRealField.exsqrtÑ   s   € ð  œ6ˆq�C�xÐ+ tÐ+r'   )r4   rA   rF   r;   rD   rC   )NNN©Tr,   )-rY   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚrepÚis_RealFieldÚis_RRÚis_ExactÚis_NumericalÚis_PIDÚhas_assoc_RingÚhas_assoc_Fieldr.   Úpropertyr1   r-   r8   r<   rI   rL   rB   rT   rZ   r^   rd   rj   rn   rq   ru   ry   r|   r   r‚   r‡   r   r�   r’   r—   rš   r�   r¡   r¤   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r&   r)   r)   6   s  ø‡ € á2à
€CàÐ€L�5à€HØ€LØ€Fà€NØ€OàÐàñ9ó ð9ð ñ"ó ð"ð ñ!ó ð!ð ñó ðô5ð4 ñó ðò òRòLò(òHò#ò#ò(òHòHòMòGò#ò,ôBòòò
òô7ò÷,ð ,r'   r)   Nr¦   )rª   Úsympy.external.gmpyr   r   Úsympy.core.numbersr   Úsympy.polys.domains.fieldr   Ú sympy.polys.domains.simpledomainr   Ú&sympy.polys.domains.characteristiczeror   Úsympy.polys.polyerrorsr   Úsympy.utilitiesr	   Úmpmathr
   Úmpmath.libmpr   r   r)   r*   rŒ   r'   r&   Ú<module>rÀ      sX   ðÙ 2÷ 0Ý $Ý +Ý 9Ý EÝ 1Ý "å Ý ;ô#4ðL ôb,�Ð)¨<ó b,ó ðb,ñJ ƒ[‚r'   