grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó u5Á¬Ùº5Ýãó,•SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrS/r \RRr \RRr\R"SS9S5r\R""S\R$\R&-5rSS jrS r\R""S \R.\R$-5R0r\R""S \R.\R$-5R0r"S S\R65rg)z/Fraction, infinite-precision, rational numbers.é©ÚDecimalNÚFractioni@)Úmaxsizecó¼•[US[5n[[[U55U-5nUS:¼aUOU*nUS:XaS$U$![a [ nN'f=f)Néÿÿÿÿréþÿÿÿ)ÚpowÚ_PyHASH_MODULUSÚhashÚabsÚ ValueErrorÚ _PyHASH_INF)Ú numeratorÚ denominatorÚdinvÚhash_Úresults Ú0/opt/alt/python313/lib64/python3.13/fractions.pyÚ_hash_algorithmrse€ð2Ü�; ¤OÓ4ˆô(”Tœ#˜i›.Ó)¨DÑ0Ó1ˆØ 1“n‰U¨5¨&€Fؘ2“ˆ2Ð) 6Ð)øô+ óäŠðús‚AÁAÁAa¶ \A\s* # optional whitespace at the start, (?P[-+]?) # an optional sign, then (?=\d|\.\d) # lookahead for digit or .digit (?P\d*|\d+(_\d+)*) # numerator (possibly empty) (?: # followed by (?:\s*/\s*(?P\d+(_\d+)*))? # an optional denominator | # or (?:\.(?P\d*|\d+(_\d+)*))? # an optional fractional part (?:E(?P[-+]?\d+(_\d+)*))? # and optional exponent ) \s*\Z # and optional whitespace to finish có¼•US:¼a USU--nO USU*--n[XS- -U5upEUS:XaUS-S:XaUS-nU(aUS:OUS:nU[U54$)a)Round a rational number to the nearest multiple of a given power of 10. Rounds the rational number n/d to the nearest integer multiple of 10**exponent, rounding to the nearest even integer multiple in the case of a tie. Returns a pair (sign: bool, significand: int) representing the rounded value (-1)**sign * significand * 10**exponent. If no_neg_zero is true, then the returned sign will always be False when the significand is zero. Otherwise, the sign reflects the sign of the input. d must be positive, but n and d need not be relatively prime. ré ér )Údivmodr )ÚnÚdÚexponentÚ no_neg_zeroÚqÚrÚsigns rÚ_round_to_exponentr"Jsx€ð�1ƒ}Ø ˆR�‰\Ñ‰à ˆR�(�‰]шô �!˜A‘v‘, Ó "�D€A؈Aƒv�!�a‘%˜1“*Ø ˆR‰ˆæˆ1ˆqŠ5 Q¨¡U€DØ ”�Q“ˆ<Ðócó•US:XaSSSU- 4$[[U55[U5pC[U5[U5- XC:*-nXR- n[XU5upx[[U55US-:Xa US-nUS- nXxU4$)auRound a rational number to a given number of significant figures. Rounds the rational number n/d to the given number of significant figures using the round-ties-to-even rule, and returns a triple (sign: bool, significand: int, exponent: int) representing the rounded value (-1)**sign * significand * 10**exponent. In the special case where n = 0, returns a significand of zero and an exponent of 1 - figures, for compatibility with formatting. Otherwise, the returned significand satisfies 10**(figures - 1) <= significand < 10**figures. d must be positive, but n and d need not be relatively prime. figures must be positive. rFrr)Ústrr Úlenr") rrÚfiguresÚstr_nÚstr_dÚmrr!Ú significands rÚ_round_to_figuresr,gs˜€ð" ˆAƒvØ�a˜˜W™Ð$Ð$ô”s˜1“v“;¤ A£ˆ5Ü ˆE‹ ”S˜“ZÑ 5¡>Ñ2€Að‰{€HÜ*¨1°Ó:Ñ€Dô Œ3ˆ{Ó Ó ¨!¡ Ó+ؘш Ø�A‰ ˆà ˜hÐ &Ð&r#ay (?: (?P.)? (?P[<>=^]) )? (?P[-+ ]?) # Alt flag forces a slash and denominator in the output, even for # integer-valued Fraction objects. (?P\#)? # We don't implement the zeropad flag since there's no single obvious way # to interpret it. (?P0|[1-9][0-9]*)? (?P[,_])? a› (?: (?P.)? (?P[<>=^]) )? (?P[-+ ]?) (?Pz)? (?P\#)? # A '0' that's *not* followed by another digit is parsed as a minimum width # rather than a zeropad flag. (?P0(?=[0-9]))? (?P0|[1-9][0-9]*)? (?P[,_])? (?:\.(?P0|[1-9][0-9]*))? (?P[eEfFgG%]) có¶^•\rSrSrSrSrS1U4Sjjr\S5r\S5r \U4Sj5r Sr S r S2S jr \S 5r\S 5rS rSrSrSrSrS3SjrSr\"\\R25urrSr\"\\R:5urrSr \"\ \RB5ur"r#Sr$\"\$\RJ5ur&r'Sr(\"\(\RRS5ur*r+Sr,\"\,\-S5ur.r/Sr0\"\0\RbS5ur2r3Sr4Sr5Sr6Sr7Sr8\Rr4S jr:S!r;S"rS%r?S&r@S'rAS(rBS)rCS*rDS+rES,rFS-rGS.rHS/rIS0rJU=rK$)5ré³a1This class implements rational numbers. In the two-argument form of the constructor, Fraction(8, 6) will produce a rational number equivalent to 4/3. Both arguments must be Rational. The numerator defaults to 0 and the denominator defaults to 1 so that Fraction(3) == 3 and Fraction() == 0. Fractions can also be constructed from: - numeric strings similar to those accepted by the float constructor (for example, '-2.3' or '1e10') - strings of the form '123/456' - float and Decimal instances - other Rational instances (including integers) ©Ú _numeratorÚ _denominatorcó >•[[U] U5nUGcÎ[U5[LaXlSUlU$[U[R5(a$URUlURUlU$[U[[45(aUR5uUlUlU$[U[5(Ga[ R#U5nUc[%SU-5e[ UR'S5=(d S5nUR'S5nU(a [ U5nO‰SnUR'S5nU(a4UR)SS5nS [+U5-nX-[ U5-nX'-nUR'S 5nU(a#[ U5nUS :¼a US U--nO US U*--nUR'S 5S :XaU*nO«[-S5e[U5[s=La[U5LaO OO{[U[R5(aQ[U[R5(a2URUR-URUR-p!O [-S5eUS :Xa[/SU-5e[0R2"X5n US :aU *n X-nX)-nXlX#lU$)aÛConstructs a Rational. Takes a string like '3/2' or '1.5', another Rational instance, a numerator/denominator pair, or a float. Examples -------- >>> Fraction(10, -8) Fraction(-5, 4) >>> Fraction(Fraction(1, 7), 5) Fraction(1, 35) >>> Fraction(Fraction(1, 7), Fraction(2, 3)) Fraction(3, 14) >>> Fraction('314') Fraction(314, 1) >>> Fraction('-35/4') Fraction(-35, 4) >>> Fraction('3.1415') # conversion from numeric string Fraction(6283, 2000) >>> Fraction('-47e-2') # string may include a decimal exponent Fraction(-47, 100) >>> Fraction(1.47) # direct construction from float (exact conversion) Fraction(6620291452234629, 4503599627370496) >>> Fraction(2.25) Fraction(9, 4) >>> Fraction(Decimal('1.47')) Fraction(147, 100) rz Invalid literal for Fraction: %rÚnumÚ0ÚdenomÚdecimalÚ_ÚrÚexprr!Ú-z2argument should be a string or a Rational instancez+both arguments should be Rational instancesúFraction(%s, 0))ÚsuperrÚ__new__ÚtypeÚintr0r1Ú isinstanceÚnumbersÚRationalrrÚfloatrÚas_integer_ratior%Ú_RATIONAL_FORMATÚmatchrÚgroupÚreplacer&Ú TypeErrorÚZeroDivisionErrorÚmathÚgcd) ÚclsrrÚselfr*r5r6Úscaler9ÚgÚ __class__s €rr=ÚFraction.__new__Ës–ø€ô>”X˜sÑ+¨CÓ0ˆà Ò Ü�I‹¤#Ò%Ø"+”Ø$%�Ô!Ø� ä˜I¤w×'7Ñ'7×8Ñ8Ø"+×"5Ñ"5�”Ø$-×$9Ñ$9�Ô!Ø� ä˜I¬¬wÐ'7×8Ñ8à5>×5OÑ5OÓ5QÑ2�” Ô!2Ø� ä˜I¤s×+Ò+ä$×*Ñ*¨9Ó5�Ø‘9Ü$Ð%GØ%.ñ&/ó0ð0ä §¡¨£× 5°#Ó6� ØŸ™ Ó(�ÞÜ"% e£*‘Kà"#�KØŸg™g iÓ0�GÞØ")§/¡/°#°rÓ":˜Ø "¤C¨£LÑ 0˜Ø$-Ñ$5¼¸G» Ñ$D˜ Ø#Ñ,˜ ØŸ'™' %›.�CÞÜ! #›h˜Ø !›8Ø%¨¨S©Ñ0™Ià'¨2°¨t©8Ñ3˜KØ—7‘7˜6“? cÓ)Ø!*  �Iøô ð!9ó:ð:ô�)‹_¤Ô 8¤t¨KÓ'8Õ 8Ø ä˜¤G×$4Ñ$4×5Ñ5Ü �{¤G×$4Ñ$4× 5Ñ 5à×#Ñ# k×&=Ñ&=Ñ=Ø×%Ñ%¨ ×(=Ñ(=Ñ=ñ#ô ð1ó2ð 2ð ˜!Ó Ü#Ð$5¸ Ñ$AÓBÐ BÜ �HŠH�YÓ ,ˆØ ˜‹?Ø�ˆA؉ˆ ØÑˆ Ø#ŒØ'ÔØˆ r#c ó•[U[R5(aU"U5$[U[5(d4[ UR <SU<S[ U5R <S35eUR"UR56$)zrConverts a finite float to a rational number, exactly. Beware that Fraction.from_float(0.3) != Fraction(3, 10). z%.from_float() only takes floats, not ú (Ú)) r@rAÚIntegralrCrIÚ__name__r>Ú_from_coprime_intsrD)rMÚfs rÚ from_floatÚFraction.from_float4sq€ô �aœ×)Ñ)× *Ñ *Ù�q“6ˆMܘAœu×%Ñ%ÜØ Ÿ\œ\«1¬d°1«g×.>Ô.>ð@óAð Aà×%Ò% q×'9Ñ'9Ó';Ð<ÐrXrD)rMÚdecrs rÚ from_decimalÚFraction.from_decimalBsv€õ $Ü �cœ7×+Ñ+× ,Ñ ,Ùœ#˜c›(Ó#‰CܘC×)Ñ)Üà—”›s¤D¨£I×$6Ô$6ð8ó9ð 9ð×%Ò% s×';Ñ';Ó'=Ð>Ð>r#cóF>•[[U] U5nXlX#lU$)z˜Convert a pair of ints to a rational number, for internal use. The ratio of integers should be in lowest terms and the denominator should be positive. )r<rr=r0r1)rMrrÚobjrQs €rrXÚFraction._from_coprime_intsNs&ø€ô”H˜cÑ*¨3Ó/ˆØ"ŒØ&ÔØˆ r#có •URS:H$)z*Return True if the Fraction is an integer.r©r1©rNs rÚ is_integerÚFraction.is_integerZs€à× Ñ  AÑ%Ð%r#có2•URUR4$)zˆReturn a pair of integers, whose ratio is equal to the original Fraction. The ratio is in lowest terms and has a positive denominator. r/res rrDÚFraction.as_integer_ratio^s€ð —‘ ×!2Ñ!2Ð3Ð3r#có�•US:a [S5eURU::a [U5$Sup#pEURURpvXg-nX8U--n X‘:”aOXEX(U--U 4up#pEXvX‡-- pvM'X- U-n SU-X:U---UR::a[R XE5$[R X*U--X:U--5$)aClosest Fraction to self with denominator at most max_denominator. >>> Fraction('3.141592653589793').limit_denominator(10) Fraction(22, 7) >>> Fraction('3.141592653589793').limit_denominator(100) Fraction(311, 99) >>> Fraction(4321, 8765).limit_denominator(10000) Fraction(4321, 8765) rz$max_denominator should be at least 1)rrrré)rr1rr0rX) rNÚmax_denominatorÚp0Úq0Úp1Úq1rrÚaÚq2Úks rÚlimit_denominatorÚFraction.limit_denominatoresì€ð@ ˜QÓ ÜÐCÓDÐ DØ × Ñ  Ó /ܘD“>Ð !à#‰ˆ�Ø�‰ × 1Ñ 1ˆ1ØØ‘ˆAØ�b‘D‘ˆBØÓ#ØØ R¨"©¡W¨bÐ0‰NˆB�Bؘ™‘eˆqñ ðÑ  "Ñ $ˆð ˆQ‰3��R‘4‘‰=˜D×-Ñ-Ó -Ü×.Ñ.¨rÓ6Ð 6ä×.Ñ.¨r°B±$©w¸¸R¹4¹Ó@Ð @r#có•UR$©N)r0©rqs rrÚFraction.numeratoržs €à�|‰|Ðr#có•UR$rwrdrxs rrÚFraction.denominator¢s €à�~‰~Ðr#cón•URR<SUR<SUR<S3$)z repr(self)Ú(z, rU)rQrWr0r1res rÚ__repr__ÚFraction.__repr__¦s*€à#Ÿ~™~×6Ô6Ø#Ÿœ°×0AÔ0AðCð Cr#có†•URS:Xa[UR5$UR<SUR<3$)z str(self)rÚ/)r1r%r0res rÚ__str__ÚFraction.__str__«s4€à × Ñ  Ó !Ü�t—‘Ó'Ð 'à"Ÿoœo¨t×/@Ó/@ÐAÐ Ar#có"•US=(d SnUS=(d SnUSS:XaSOUSn[US5n[US =(d S 5nUS =(d SnURURp˜U S :”dU(a[ U5US X—3n O[ U5Un US:aSOUn X&[ U 5- [ U 5- -n US:XaXË-U -$US:XaXº-U -$US:Xa[ U 5S-n U SU U -U -XÍS-$X¼-U -$)z}Helper method for __format__. Handles fill, alignment, signs, and thousands separators in the case of no presentation type. ÚfillÚ ÚalignÚ>r!r:r8ÚaltÚ minimumwidthr4Ú thousands_seprr�rÚ<Ú^rkN)Úboolr?r0r1r r&)rNrFr…r‡Úpos_signÚalternate_formrŠr‹rrÚbodyr!ÚpaddingÚhalfs rÚ_format_generalÚFraction._format_general²sA€ð�V‰}×# ˆØ�g‘×% #ˆØ˜v™¨#Ó-‘2°5¸±=ˆÜ˜e E™lÓ+ˆÜ˜5 Ñ0×7°CÓ8ˆ ؘoÑ.×4°"ˆ ð�‰ × 1Ñ 1ˆ1Ø ˆq‹5–Nܘ!“f˜m˜_Ð-¨Q¨q°Ð.AÐB‰Dä˜!“f˜m˜_Ð-ˆDؘ!“e‰s ˆð¬¨T«Ñ2´S¸³YÑ>Ñ?ˆØ �C‹<Ø‘> DÑ(Ð (Ø �c‹\Ø‘; Ñ(Ð (Ø �c‹\Ü�w“< 1Ñ$ˆDؘ5˜D�> DÑ(¨4Ñ/°'¸%°.Ñ@Ð @à‘> DÑ(Ð (r#c óâ^^ •US=(d SnUS=(d SnUSS:XaSOUSn[US5n[US 5n[US 5n[US =(d S 5nUS m [US=(d S5n USn U S;=(a U(+n U(+n U S;aSOSn US:XaUS :XaSnU S;a7U *nU S:XaUS-n[URURXå5unnSnU nOkU S;a [ U S5OU S-n[ URURU5unnnU S;=(d US:„=(d UU-S:*nU(aUS- OU*nU S:XaSnOU(a U UU-S3nOSnUS US-S 3nU(aSOUnUS![U5U- mU[U5U- S!nU (aURS 5nU (a U(dSOS"nUU-U-nU(a=U[U5- [U5- nTRT (a S#U-S$-S-OU5mT (aJS[T5S- S#--nTS!USRUU 4S%j[U[T5S#555-mTU-nX([U5- [U5- -nUS:XaUU-U-$US&:XaUU-U-$US':Xa[U5S-nUS!UU-U-UUS!-$UU-U-$)(z?Helper method for __format__; handles float presentation types.r…r†r‡rˆr!r:r8rr‰ÚzeropadrŠr4r‹Ú precisionÚ6Úpresentation_typeÚgGÚEFGÚEÚeÚ=TzfF%Ú%rkFrÚeEréüÿÿÿz+03drNÚ.ééc3ó8># •UHnTTXS--v• M g7f)r¤N©)Ú.0ÚposÚleadingr‹s €€rÚ Ú/Fraction._format_float_style..%s&øé€ð4â<�Cð ¨°A©gÐ 6Ö6Ú<ùsƒrŒr�) rŽr?r"r0r1Úmaxr,r&ÚrstripÚzfillÚjoinÚrange)!rNrFr…r‡r�rr�r—rŠr˜ršÚ trim_zerosÚ trim_pointÚexponent_indicatorrÚnegativer+Ú scientificÚ point_posr'ÚsuffixÚdigitsr!Ú frac_partÚ separatorÚtrailingÚ min_leadingÚ first_posr‘r’r“rªr‹s! @@rÚ_format_float_styleÚFraction._format_float_styleÔs‚ù€à�V‰}×# ˆØ�g‘×% #ˆØ˜v™¨#Ó-‘2°5¸±=ˆÜ˜5 Ñ/Ó0ˆ ܘe E™lÓ+ˆÜ�u˜YÑ'Ó(ˆÜ˜5 Ñ0×7°CÓ8ˆ ؘoÑ.ˆ ܘ˜kÑ*×1¨cÓ2ˆ Ø!Ð"5Ñ6ÐØ&¨$Ñ.×E°~Ô3Eˆ Ø'Ô'ˆ Ø$5¸Ó$>™SÀCÐà �C‹<˜D C›K؈Gð  Ó %Ø!�zˆHØ  CÓ'ؘA‘ �Ü$6Ø—‘ ×!2Ñ!2°Hó%KÑ !ˆH�kàˆJØ!‰Ið%¨Ó,ô�I˜qÔ!à ‘]ð ô /@Ø—‘ ×!2Ñ!2°Gó/=Ñ +ˆH�k 8ð" TÑ)÷,ؘa‘<÷,à˜gÑ%¨Ñ+ð ö (2˜ !š ¸°yˆIð  Ó #؉FÞ Ø*Ð+¨H°yÑ,@ÀÐ+FÐG‰FàˆFð   )¨a¡- °Ð1Ð2ˆö ‰s HˆØÐ2œ3˜v›;¨Ñ2Ð3ˆØœ3˜v›;¨Ñ2Ð4Ð5ˆ Þ Ø!×(Ñ(¨Ó-ˆIÞ$®Y‘B¸Cˆ ؘyÑ(¨6Ñ1ˆö Ø&¬¨T«Ñ2´S¸³]ÑBˆKð—m‘mÞ,9��K‘ 1Ñ$ qÒ(¸{óˆGö ØœS ›\¨AÑ-°Ñ2Ñ2ˆIؘj˜yÐ)¨B¯G©Gõ4ä  ¬C°«L¸!Ô<ó4ó-ñˆGð˜Ñ!ˆØ¬¨T«Ñ2´S¸³YÑ>Ñ?ˆØ �C‹<ؘT‘> DÑ(Ð (Ø �c‹\ؘ$‘; Ñ(Ð (Ø �c‹\Ü�w“< 1Ñ$ˆDؘ5˜D�> DÑ(¨4Ñ/°'¸$¸%°.Ñ@Ð @à˜'‘> DÑ(Ð (r#cóò•[U5=n(aURU5$[U5=n(aUSbUScURU5$[ SU<S[ U5R <35e)zAFormat this fraction according to the given format specification.r‡r—zInvalid format specifier z for object of type )Ú%_GENERAL_FORMAT_SPECIFICATION_MATCHERr”Ú#_FLOAT_FORMAT_SPECIFICATION_MATCHERr¿rr>rW)rNÚ format_specrFs rÚ __format__ÚFraction.__format__8sŠ€ô:¸+ÓFÐ Fˆ5Õ FØ×'Ñ'¨Ó.Ð .ä7¸ ÓDÐ Dˆ5Õ Dð�W‰~Ñ%¨¨yÑ)9Ñ)AØ×/Ñ/°Ó6Ð6äØ'¨ ¡ð7"Ü"& t£*×"5Ñ"5Ñ!8ð :ó ð r#cóÎ^^^•UUU4SjnSTR-S-UlTRUlUUU4SjnSTR-S-UlTRUlX44$)aµ Generates forward and reverse operators given a purely-rational operator and a function from the operator module. Use this like: __op__, __rop__ = _operator_fallbacks(just_rational_op, operator.op) In general, we want to implement the arithmetic operations so that mixed-mode operations either call an implementation whose author knew about the types of both arguments, or convert both to the nearest built in type and do the operation there. In Fraction, that means that we define __add__ and __radd__ as: def __add__(self, other): # Both types have numerators/denominator attributes, # so do the operation directly if isinstance(other, (int, Fraction)): return Fraction(self.numerator * other.denominator + other.numerator * self.denominator, self.denominator * other.denominator) # float and complex don't have those operations, but we # know about those types, so special case them. elif isinstance(other, float): return float(self) + other elif isinstance(other, complex): return complex(self) + other # Let the other type take over. return NotImplemented def __radd__(self, other): # radd handles more types than add because there's # nothing left to fall back to. if isinstance(other, numbers.Rational): return Fraction(self.numerator * other.denominator + other.numerator * self.denominator, self.denominator * other.denominator) elif isinstance(other, Real): return float(other) + float(self) elif isinstance(other, Complex): return complex(other) + complex(self) return NotImplemented There are 5 different cases for a mixed-type addition on Fraction. I'll refer to all of the above code that doesn't refer to Fraction, float, or complex as "boilerplate". 'r' will be an instance of Fraction, which is a subtype of Rational (r : Fraction <: Rational), and b : B <: Complex. The first three involve 'r + b': 1. If B <: Fraction, int, float, or complex, we handle that specially, and all is well. 2. If Fraction falls back to the boilerplate code, and it were to return a value from __add__, we'd miss the possibility that B defines a more intelligent __radd__, so the boilerplate should return NotImplemented from __add__. In particular, we don't handle Rational here, even though we could get an exact answer, in case the other type wants to do something special. 3. If B <: Fraction, Python tries B.__radd__ before Fraction.__add__. This is ok, because it was implemented with knowledge of Fraction, so it can handle those instances before delegating to Real or Complex. The next two situations describe 'b + r'. We assume that b didn't know about Fraction in its implementation, and that it uses similar boilerplate code: 4. If B <: Rational, then __radd_ converts both to the builtin rational type (hey look, that's us) and proceeds. 5. Otherwise, __radd__ tries to find the nearest common base ABC, and fall back to its builtin type. Since this class doesn't subclass a concrete type, there's no implementation to fall back to, so we need to try as hard as possible to return an actual value, or the user will get a TypeError. cóB>•[U[5(aT"X5$[U[5(aT"U[U55$[U[5(aT"[U5U5$T(a'[U[5(aT"[ U5U5$[ $rw)r@rr?rCÚcomplexÚNotImplemented)rqÚbÚfallback_operatorÚhandle_complexÚmonomorphic_operators €€€rÚforwardÚ-Fraction._operator_fallbacks..forwardšs}ø€Ü˜!œX×&Ñ&Ù+¨AÓ1Ð1ܘAœs×#Ñ#Ù+¨A¬x¸«{Ó;Ð;ܘAœu×%Ñ%Ù(¬¨q«°1Ó5Ð5Þ¤J¨q´'×$:Ñ$:Ù(¬°«°QÓ7Ð7ä%Ð%r#Ú__cóh>•[U[R5(aT"[U5U5$[U[R5(aT"[ U5[ U55$T(a:[U[R 5(aT"[U5[U55$[$rw) r@rArBrÚRealrCÚComplexrÉrÊ)rËrqrÌrÍrÎs €€€rÚreverseÚ-Fraction._operator_fallbacks..reverse¨s{ø€Ü˜!œW×-Ñ-×.Ñ.á+¬H°Q«K¸Ó;Ð;ܘAœwŸ|™|×,Ñ,Ù(¬¨q«´5¸³8Ó<Ð<Þ¤J¨q´'·/±/×$BÑ$BÙ(¬°«´W¸Q³ZÓ@Ð@ä%Ð%r#Ú__r)rWÚ__doc__)rÎrÌrÍrÏrÕs``` rÚ_operator_fallbacksÚFraction._operator_fallbacksIsgú€÷b &ð Ð"3×"<Ñ"<Ñ<¸tÑCˆÔØ.×6Ñ6ˆŒ÷ &ð!Ð#4×#=Ñ#=Ñ=ÀÑDˆÔØ.×6Ñ6ˆŒàÐÐr#có–•URURp2URURpT[R"X55nUS:Xa[R X%-X4--X5-5$X6-nX%U--XG--n[R"X†5n U S:Xa[R X‡U-5$[R X‰-XuU --5$)za + br©r0r1rKrLrrX© rqrËÚnaÚdaÚnbÚdbrPÚsÚtÚg2s rÚ_addÚ Fraction._addûó°€à—‘˜qŸ~™~ˆBØ—‘˜qŸ~™~ˆBÜ �HŠH�RÓ ˆØ �‹6Ü×.Ñ.¨r©w¸¹Ñ/@À"Á'ÓJÐ JØ ‰GˆØ ˜‘'‰N˜R™VÑ #ˆÜ �XŠX�a‹^ˆØ �‹7Ü×.Ñ.¨q°b±&Ó9Ð 9Ü×*Ñ*¨1©7°A¸r¹±NÓCÐCr#có–•URURp2URURpT[R"X55nUS:Xa[R X%-X4-- X5-5$X6-nX%U--XG-- n[R"X†5n U S:Xa[R X‡U-5$[R X‰-XuU --5$)za - brrÜrÝs rÚ_subÚ Fraction._sub rçr#có"•URURp2URURpT[R"X%5nUS:”aX&-nXV-n[R"XC5nUS:”aXG-nX7-n[R X$-XS-5$)za * brrÜ)rqrËrÞrßràráÚg1räs rÚ_mulÚ Fraction._muls}€à—‘˜qŸ~™~ˆBØ—‘˜qŸ~™~ˆBÜ �XŠX�bÓ ˆØ �‹6Ø ‰IˆBØ ‰IˆBÜ �XŠX�bÓ ˆØ �‹6Ø ‰IˆBØ ‰IˆBÜ×*Ñ*¨2©7°B±GÓ<ÐÓ?‰ ˆØ”H˜U¨¡GÓ,Ð,Ð,r#có†•URURp2[URU-URU--X#-5$)za % b)rrr)rqrËrßrás rÚ_modÚ Fraction._modOs7€à—‘ § ¡ ˆBܘŸ™ rÑ)¨a¯k©k¸BÑ.>Ñ?ÀÁÓIÐIr#có¶•[U[R5(Ga URS:XaäURnUS:¼a0[ R URU-URU-5$URS:”a2[ R URU*-URU*-5$URS:Xa[SURU*--5e[ R UR*U*-UR*U*-5$[U5[U5-$[U[[45(a[U5U-$[$)zža ** b If b is not an integer, the result will be a float or complex since roots are generally irrational. If b is an integer, the result will be rational. rrr;) r@rArBrrrrXr0r1rJrCrÉrÊ)rqrËÚpowers rÚ__pow__ÚFraction.__pow__Vs>€ô �aœ×)Ñ)× *Ò *Ø�}‰} Ó!ØŸ ™ �ؘA“:Ü#×6Ñ6°q·|±|ÀuÑ7LØ78·~±~ÈÑ7NóPðPà—\‘\ AÓ%Ü#×6Ñ6°q·~±~È%ÈÑ7OØ78·|±|ÈÀvÑ7MóOðOà—\‘\ QÓ&Ü+Ð,=Ø,-¯N©N¸u¸fÑ,Dñ-EóFðFô$×6Ñ6¸¿¹¸ÈUÈFÑ7RØ9:¿¹¸ È5È&Ñ7PóRðRô ˜Q“x¤5¨£8Ñ+Ð+Ü ˜œE¤7Ð+× ,Ñ ,ܘ“8˜q‘=Ð ä!Ð !r#có:•URS:XaURS:¼aXR-$[U[R5(a#[ UR UR5U-$URS:XaXR-$U[U5-$)za ** brr) r1r0r@rArBrrrrC)rËrqs rÚ__rpow__ÚFraction.__rpow__vsz€à �>‰>˜QÓ  1§<¡<°1Ó#4àŸ ™ Ñ$Ð $ä �aœ×)Ñ)× *Ñ *ܘAŸK™K¨¯©Ó7¸1Ñ<Ð <à �>‰>˜QÓ ØŸ ™ Ñ$Ð $à”E˜!“H‰}Ðr#cóV•[RURUR5$)z++a: Coerces a subclass instance to Fraction©rrXr0r1rxs rÚ__pos__ÚFraction.__pos__„s€ä×*Ñ*¨1¯<©<¸¿¹ÓHÐHr#cóX•[RUR*UR5$)z-arrxs rÚ__neg__ÚFraction.__neg__ˆs€ä×*Ñ*¨A¯L©L¨=¸!¿.¹.ÓIÐIr#cóh•[R[UR5UR5$)zabs(a))rrXr r0r1rxs rÚ__abs__ÚFraction.__abs__Œs"€ä×*Ñ*¬3¨q¯|©|Ó+<¸a¿n¹nÓMÐMr#có¢•URS:a!U"UR*UR-*5$U"URUR-5$)zint(a)rr/)rqÚ_indexs rÚ__int__ÚFraction.__int__�sC€à �<‰<˜!Ó Ù˜QŸ\™\˜M¨Q¯^©^Ñ;Ð<Ó=Ð =á˜!Ÿ,™,¨!¯.©.Ñ8Ó9Ð 9r#cóŠ•URS:aUR*UR-*$URUR-$)z math.trunc(a)rr/rxs rÚ __trunc__ÚFraction.__trunc__—s9€à �<‰<˜!Ó Ø—l‘l�] a§n¡nÑ4Ð5Ð 5à—<‘< 1§>¡>Ñ1Ð 1r#có4•URUR-$)z math.floor(a)r/rxs rÚ __floor__ÚFraction.__floor__žs€à�|‰|˜qŸ~™~Ñ-Ð-r#có8•UR*UR-*$)z math.ceil(a)r/rxs rÚ__ceil__ÚFraction.__ceil__¢s€ð—,‘,� !§.¡.Ñ0Ð1Ð1r#có*•UcMURn[URU5up4US-U:aU$US-U:”aUS-$US-S:XaU$US-$S[U5-nUS:”a[ [ X-5U5$[ [ X- 5U-5$)z/round(self, ndigits) Rounds half toward even. rkrrr)r1rr0r rÚround)rNÚndigitsrÚfloorÚ remainderÚshifts rÚ __round__ÚFraction.__round__§sª€ð ‰?Ø×!Ñ!ˆAÜ% d§o¡o°qÓ9Ñ ˆEؘ1‰}˜qÓ Ø� ؘQ‘ Ó"ؘq‘yÐ à˜‘˜a“Ø� à˜q‘yÐ Ø”C˜“LÑ ˆð �Q‹;ÜœE $¡,Ó/°Ó7Ð 7äœE $¡,Ó/°%Ñ7Ó8Ð 8r#cóB•[URUR5$)z hash(self))rr0r1res rÚ__hash__ÚFraction.__hash__Ás€ä˜tŸ™°×0AÑ0AÓBÐBr#cóh•[U5[La%URU:H=(a URS:H$[ U[ R 5(a9URUR:H=(a URUR:H$[ U[ R5(aURS:Xa URn[ U[5(aN[R"U5(d[R"U5(aSU:H$XR!U5:H$["$)za == brrç)r>r?r0r1r@rArBrrrÔÚimagÚrealrCrKÚisnanÚisinfrZrÊrós rÚ__eq__ÚFraction.__eq__ÅsÕ€ä �‹7”cŠ>Ø—<‘< 1Ñ$×<¨¯©¸1Ñ)<Ð <Ü �aœ×)Ñ)× *Ñ *Ø—L‘L A§K¡KÑ/÷4Ø—N‘N a§m¡mÑ3ð 5ä �aœŸ™× )Ñ )¨a¯f©f¸«kØ—‘ˆAÜ �aœ× Ñ Ü�zŠz˜!�}‰}¤§ ¢ ¨1§ ¡ ð˜a‘x�àŸL™L¨›OÑ+Ð+ô"Ð !r#có�•[U[R5(a7U"URUR-UR UR -5$[U[5(aV[R"U5(d[R"U5(a U"SU5$U"XRU55$[$)a3Helper for comparison operators, for internal use only. Implement comparison between a Rational instance `self`, and either another Rational instance or a float `other`. If `other` is not a Rational instance or a float, return NotImplemented. `op` should be one of the six standard comparison operators. r() r@rArBr0rr1rrCrKr+r,rZrÊ)rNÚotherÚops rÚ_richcmpÚFraction._richcmpÚs—€ô �eœW×-Ñ-× .Ñ .Ù�d—o‘o¨×(9Ñ(9Ñ9Ø×'Ñ'¨%¯/©/Ñ9ó;ð ;ä �eœU× #Ñ #Ü�zŠz˜%× Ñ ¤D§J¢J¨u×$5Ñ$5Ù˜#˜u“~Ð%á˜$§¡°Ó 6Ó7Ð7ä!Ð !r#cóB•URU[R5$)za < b)r2ÚoperatorÚltrós rÚ__lt__ÚFraction.__lt__ðó€à�z‰z˜!œXŸ[™[Ó)Ð)r#cóB•URU[R5$)za > b)r2r5Úgtrós rÚ__gt__ÚFraction.__gt__ôr9r#cóB•URU[R5$)za <= b)r2r5Úlerós rÚ__le__ÚFraction.__le__ør9r#cóB•URU[R5$)za >= b)r2r5Úgerós rÚ__ge__ÚFraction.__ge__ür9r#có,•[UR5$)za != 0)rŽr0rxs rÚ__bool__ÚFraction.__bool__s€ô�A—L‘LÓ!Ð!r#cóJ•URURUR44$rw)rQr0r1res rÚ __reduce__ÚFraction.__reduce__s €Ø—‘ §¡°$×2CÑ2CÐ DÐEÐEr#cóx•[U5[:XaU$URURUR5$rw©r>rrQr0r1res rÚ__copy__ÚFraction.__copy__ ó.€Ü �‹:œÓ !؈KØ�~‰~˜dŸo™o¨t×/@Ñ/@ÓAÐAr#cóx•[U5[:XaU$URURUR5$rwrM)rNÚmemos rÚ __deepcopy__ÚFraction.__deepcopy__rPr#)r1r0)rN)i@B)Trw)LrWÚ __module__Ú __qualname__Ú__firstlineno__rØÚ __slots__r=Ú classmethodrZr^rXrfrDrtÚpropertyrrr~r‚r”r¿rÅrÙrår5ÚaddÚ__add__Ú__radd__réÚsubÚ__sub__Ú__rsub__ríÚmulÚ__mul__Ú__rmul__rðÚtruedivÚ __truediv__Ú __rtruediv__rôÚfloordivÚ __floordiv__Ú __rfloordiv__rùrÚ __divmod__Ú __rdivmod__rüÚmodÚ__mod__Ú__rmod__rrrr r Úindexrrrrr"r%r-r2r7r<r@rDrGrJrNrSÚ__static_attributes__Ú __classcell__)rQs@rrr³sø†ñð(/€I÷gðRñ =óð =ðñ ?óð ?ðô óð ò&ò4ô7AðrñóððñóðòCò Bò )òDb)òH ð$,0ôl òd Dñ,¨D°(·,±,Ó?Ñ€GˆXò Dñ,¨D°(·,±,Ó?Ñ€GˆXò =ñ,¨D°(·,±,Ó?Ñ€GˆXò1ñ(!4°D¸(×:JÑ:JÓ KÑ€K�òNñ#6°iÀ×ARÑARÐTYÓ"ZÑ€L�-ò-ñ 2°'¸6À5ÓIÑ€J� òJñ ,¨D°(·,±,ÀÓFÑ€GˆXò"ò@ òIòJòNð#Ÿ.™.ô:ò2ò.ò2ô 9ò4Cò"ò*"ò,*ò*ò*ò*ò"òFòB÷ BðBr#)F)rØr6rÚ functoolsrKrAr5ÚreÚsysÚ__all__Ú hash_infoÚmodulusr ÚinfrÚ lru_cacherÚcompileÚVERBOSEÚ IGNORECASErEr"r,ÚDOTALLÚ fullmatchrÂrÃrBrr§r#rÚrsðñ6åÛÛ ÛÛÛ Û à ˆ,€ð —-‘-×'Ñ'€ð�m‰m×Ñ€ à ×Ò˜wÑ'ñ*ó(ð*ð@—:’:ð ð‡Z�Z�"—-‘-Ñó !Ðô"ò:$'ðP)+¯ ª ð 4ð‡Y�Y�—‘Ñó )÷'™Yð&ð$')§j¢jð2ð‡Y�Y�—‘Ñó'÷'™Yð$ô$` Bˆw×Ñõ` Br#