|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /usr/lib64/python2.6/ |
Upload File : |
Ñò
§ÚêLc @ s“ d Z d d k l Z d d k Z d d k Z d d k Z d d k Z d d g Z e i Z d „ Z e i
d e i ƒ Z d e f d „ ƒ YZ
d S( s+ Rational, infinite-precision, real numbers.iÿÿÿÿ( t divisionNt Fractiont gcdc C s$ x | o | | | } } q W| S( s¶ Calculate 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).
( ( t at b( ( s! /usr/lib64/python2.6/fractions.pyR s s
\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 an optional
/(?P<denom>\d+) # / and denominator
| # or
\.(?P<decimal>\d*) # decimal point and fractional part
)?
\s*\Z # and optional whitespace to finish
c B sß e Z d Z d( Z d d d „ Z e d „ ƒ Z e d „ ƒ Z d d „ Z e d
„ ƒ Z
e d „ ƒ Z d „ Z d
„ Z
d „ Z d „ Z e e e i ƒ \ Z Z d „ Z e e e i ƒ \ Z Z d „ Z e e e i ƒ \ Z Z d „ Z e e e i ƒ \ Z Z e e e i ƒ \ Z! Z"