ó ¿œ^c@s³ddlZddlZejdZejdZd„Zd„Zdded„Zd„Zd„Z d dd „ƒYZ d „Z d d „Z d„Z edkr¯e ƒndS(iÿÿÿÿNg@cCst|dƒot|dƒS(Ntretim(thasattr(tobj((s,/usr/lib64/python2.7/Demo/classes/Complex.pyt IsComplexGscCs7t|ƒr|St|tƒr)t|ŒSt|ƒSdS(N(Rt isinstancettupletComplex(R((s,/usr/lib64/python2.7/Demo/classes/Complex.pyt ToComplexJs   icCs5|t|}ttj|ƒ|tj|ƒ|ƒS(N(ttwopiRtmathtcostsin(trtphit fullcircle((s,/usr/lib64/python2.7/Demo/classes/Complex.pytPolarToComplexRscCst|ƒr|jS|S(N(RR(R((s,/usr/lib64/python2.7/Demo/classes/Complex.pytReVs cCst|ƒr|jSdS(Ni(RR(R((s,/usr/lib64/python2.7/Demo/classes/Complex.pytIm[s RcBsÿeZddd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Ze ZZed„ZeZd„ZeZd„Zd„Zd„ZeZd„Zd„Zdd„Zd„ZRS(icCs„d}d}t|ƒr-|j}|j}n|}t|ƒr\||j}||j}n ||}||jd<||jdcCs§dG|GdG|Gyt|ƒ}Wntj}nXdG|GHt|tƒsZt|tƒri||k}nt||ƒ|k}|s£dG|GdGt||ƒGHndS(Ns tands->s!! !! !! should betdiff(tevaltsystexc_typeRtstrR@(texprtatbRtfuzztresulttok((s,/usr/lib64/python2.7/Demo/classes/Complex.pytcheckopçs  cCsdGHdtƒfd tƒfd!tdƒfd"tddƒfd#ttddƒƒfd$ttddƒdƒfd%tdtddƒƒfd&tdtdƒƒfd'tdtddƒƒfd(ttddƒtdd ƒƒff }ddg}x€|D]x}|dcd7<|dd|djksH|dd|djkrüd G|dGd G|dGH|dcd7As        ‚   J