U
if _ @ s d Z ddlmZ ddlZddlZddlZddlZddlZddgZdd Z dd Z
ejjZ
ejjZed ejejB ZG d
d dejZdS )z+Fraction, infinite-precision, real numbers. DecimalNFractiongcdc C sf ddl }|dtd t| t kr2t|kr\n n&|p<| dk rPt| | S t| |S t| |S )zCalculate the Greatest Common Divisor of a and b.
Unless b==0, the result will have the same sign as b (so that when
b is divided by it, the result comes out positive).
r Nz6fractions.gcd() is deprecated. Use math.gcd() instead. )warningswarnDeprecationWarningtypeintmathr _gcd)abr r ./opt/alt/python38/lib64/python3.8/fractions.pyr s c C s |r|| | } }q | S Nr r r r r r r
s r
aC
\A\s* # optional whitespace at the start, then
(?P<sign>[-+]?) # an optional sign, then
(?=\d|\.\d) # lookahead for digit or .digit
(?P<num>\d*) # numerator (possibly empty)
(?: # followed by
(?:/(?P<denom>\d+))? # an optional denominator
| # or
(?:\.(?P<decimal>\d*))? # an optional fractional part
(?:E(?P<exp>[-+]?\d+))? # and optional exponent
)
\s*\Z # and optional whitespace to finish
c s e Zd ZdZdZdRdd fddZed d
Zedd Zd
d Z dSddZ
edd Zedd Z
dd Zdd Zdd Zdd Zeeej\ZZdd Zeeej\ZZd d! Zeeej\ZZd"d# Zeeej\Z Z!d$d% Z"ee"ej#\Z$Z%d&d'