korsygfhrtzangaiide
Elepffwdsff
/
usr
/
lib64
/
python2.7
/
Demo
/
classes
/
Upload FileeE
HOME
� V �Qc @ s� d d l Z d d l Z e j d Z e j d Z d � Z d � Z d d e d � Z d � Z d � Z d d d � � YZ d � Z d d � Z d � Z e d k r� e � n d S( i����Ng @c C s t | d � o t | d � S( Nt ret im( t hasattr( t obj( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt IsComplexG s c C s7 t | � r | St | t � r) t | � St | � Sd S( N( R t isinstancet tuplet Complex( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt ToComplexJ s i c C s5 | t | } t t j | � | t j | � | � S( N( t twopiR t matht cost sin( t rt phit fullcircle( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt PolarToComplexR s c C s t | � r | j S| S( N( R R ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt ReV s c C s t | � r | j Sd S( Ni ( R R ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt Im[ s R c B s� e Z d d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e Z Z e d � Z e Z d � Z e Z d � Z d � Z d � Z e Z d � Z d � Z d d � Z d � Z RS( i c C s� d } d } t | � r- | j } | j } n | } t | � r\ | | j } | | j } n | | } | | j d <| | j d <d S( Ni R R ( R R R t __dict__( t selfR R t _ret _im( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __init__b s c C s t d � d S( Ns Complex numbers are immutable( t TypeError( R t namet value( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __setattr__t s c C s, | j s t | j � St | j | j f � S( N( R t hashR ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __hash__w s c C s/ | j s d | j f Sd | j | j f Sd S( Ns Complex(%r)s Complex(%r, %r)( R R ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __repr__| s c C s. | j s t | j � Sd | j | j f Sd S( Ns Complex(%r, %r)( R t reprR ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __str__� s c C s t | j | j � S( N( R R R ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __neg__� s c C s | S( N( ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __pos__� s c C s t j | j | j � S( N( R t hypotR R ( R ( ( s, /usr/lib64/python2.7/Demo/classes/Complex.pyt __abs__� s c C s"