ó
ŠwÛjc           @   sÕ   d  d l  Z  d  d l m Z d  d l m Z d  d l m Z m Z m Z e d ƒ Z	 e d ƒ Z
 e e d ƒ Z e  j e o� e j d ƒ j d	 ƒ d
 ƒ Z d e  j f d „  ƒ  YZ d „  Z e d k rÑ e ƒ  n  d S(   iÿÿÿÿN(   t   test_support(   t   random(   t   atan2t   isnant   copysignt   inft   nant   __getformat__t   doublet   IEEEs   test requires IEEE 754 doublest   ComplexTestc           B   s…  e  Z d  „  Z d d „ Z d „  Z 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 d „  Z d „  Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j d ƒ j d ƒ r d „  Z  n  e! j" e j d ƒ j d ƒ d ƒ d „  ƒ Z# e! j" e j d ƒ j d ƒ d ƒ d  „  ƒ Z$ d! „  Z% RS("   c         C   sì   t  | t ƒ rŽ t  | t ƒ rY t j j |  | j | j ƒ t j j |  | j | j ƒ qè t j j |  | j | ƒ t j j |  | j d ƒ nZ t  | t ƒ rÒ t j j |  | | j ƒ t j j |  d | j ƒ n t j j |  | | ƒ d  S(   Ng        (   t
   isinstancet   complext   unittestt   TestCaset   assertAlmostEqualt   realt   imag(   t   selft   at   b(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR      s    g•Ö&è.>c         C   s…   t  | ƒ t  | ƒ k r( | | } } n  | d k rD t  | ƒ | k  S| d k r` t  | ƒ | k  S|  j t  | | | ƒ | k  ƒ d S(   s+   Return true iff floats x and y "are close".i    N(   t   abst
   assertTrue(   R   t   xt   yt   eps(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   assertCloseAbs#   s    c         C   s¥   d } t  | ƒ s t  | ƒ r= t  | ƒ rˆ t  | ƒ rˆ d SnK | | k rˆ | d k rY d St d | ƒ t d | ƒ k r{ d S| d 7} n  |  j | j | | ƒ ƒ d S(   s#  assert that floats x and y are identical, in the sense that:
        (1) both x and y are nans, or
        (2) both x and y are infinities, with the same sign, or
        (3) both x and y are zeros, with the same sign, or
        (4) x and y are both finite and nonzero, and x == y

        s&   floats {!r} and {!r} are not identicalNg        g      ð?s   : zeros have different signs(   R   R   t   failt   format(   R   R   R   t   msg(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   assertFloatsAreIdentical/   s    c         C   s6   |  j  | j | j | ƒ |  j  | j | j | ƒ d S(   s.   Return true iff complexes x and y "are close".N(   R   R   R   (   R   R   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   assertCloseF   s    c         C   sÜ   | | } | d k rq | | } |  j  | | ƒ | j | ƒ } |  j  | | ƒ | j | ƒ } |  j  | | ƒ n  | d k rØ | | } |  j  | | ƒ | j | ƒ } |  j  | | ƒ | j | ƒ } |  j  | | ƒ n  d S(   s8   Compute complex z=x*y, and check that z/x==y and z/y==x.i    N(   R   t   __div__t   __truediv__(   R   R   R   t   zt   q(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt	   check_divK   s    


c         C   s  g  t  d d ƒ D] } t | ƒ ^ q } g  | D]" } | D] } t | | ƒ ^ q9 q/ } x/ | D]' } x | D] } |  j | | ƒ qk Wq^ W|  j t d d ƒ d
 ƒ |  j t d d ƒ d ƒ xB t  d ƒ D]4 } |  j t t ƒ  t ƒ  ƒ t t ƒ  t ƒ  ƒ ƒ qÈ W|  j t t j d d ƒ d  S(   Niûÿÿÿi   gZb××çtii   y                g¬÷N’~hid   y              ð?i    y      ð?        y      ð?        y      ð?      ð?y                (   t   xranget   floatR   R$   R   t   assertRaisest   ZeroDivisionErrorR    (   R   t   it   simple_realR   R   t   simple_complex(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_div]   s    (/c         C   s³   |  j  t j d d ƒ d ƒ |  j t t j d	 d
 ƒ xw d t f t d f t t f g D]T \ } } t d d ƒ t | | ƒ } |  j t | j ƒ ƒ |  j t | j	 ƒ ƒ qW Wd  S(   Ni   y                i   y              ð?i    y       @        y      ð?      ð?y      ð?      ð¿y      ð?      ð?y                (
   R   R   R!   R'   R(   t   NANR   R   R   R   (   R   t
   denom_realt
   denom_imagR"   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_truedivr   s    .c         C   s9   |  j  t j d d ƒ d ƒ |  j t t j d d	 ƒ d  S(
   Ni   y                g      ø?i   i    y      @        y      ø?        y      @        y                (   R   R   t   __floordiv__R'   R(   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_floordiv{   s    c         C   s   |  j  t t j d d ƒ d  S(   Ni   y              ð?l    i'  y      ð?      ð?l›                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       (   R'   t   OverflowErrorR   t
   __coerce__(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_coerce   s    c            sO   d t  f d „  ƒ  Y} | ƒ  ‰  |  j t ‡  f d †  ƒ |  j ˆ  d k  ƒ d  S(   Nt   Ac           B   s    e  Z d  „  Z d Z d „  Z RS(   c         S   s
   t  ‚ d  S(   N(   t   RuntimeError(   R   t   other(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR4   …   s    c         S   s   d S(   Niÿÿÿÿ(    (   R   R8   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __cmp__ˆ   s    N(   t   __name__t
   __module__R4   t   Nonet   __hash__R9   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR6   „   s   	c              s   ˆ  d S(   Ny               @(    (    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   <lambda>Œ   t    y               @(   t   objectR'   t	   TypeErrorR   (   R   R6   (    (   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_no_implicit_coerce‚   s    	c         C   s  |  j  t j d d ƒ t ƒ |  j  t j d	 d  ƒ t ƒ |  j t j d
 d ƒ t ƒ |  j t j d d ƒ t ƒ |  j t j	 d d ƒ t ƒ |  j t j	 d d ƒ t ƒ |  j
 t t j d d ƒ |  j
 t t j d d ƒ |  j
 t t j d d ƒ |  j
 t t j d d ƒ d  S(   Ni   y              ð?l    i'  i   y               @y      ð?      ð?l›                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       y      ð?      ð?y      ð?      ð?y      ð?      ð?y      ð?      ð?y       @       @y      ð?      ð?y      ð?      ð?y      ð?      ð?y       @       @y      ð?      ð?y       @       @y      ð?      ð?y       @       @y      ð?      ð?y       @       @y      ð?      ð?y       @       @(   t   assertEqualR   t   __eq__t   Falset   __lt__R<   t   NotImplementedt   assertIst   Truet   __ne__R'   RA   t   __le__t   __gt__t   __ge__(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_richcompare�   s    c            s¯   d ‡ f d † } xz t  d d ƒ D]i } d | } d | ‰  | d | t  d d ƒ ‡  f d †  ƒ | d | t  d d ƒ d	 „  t | ƒ ƒ q" W| d t  d d ƒ d „  ƒ d  S(   Ng        c            ss   xl | D]d } |  | } t  | | ƒ } ˆ  j t  j | | ƒ | | ƒ ƒ ˆ  j t  j | | ƒ | | ƒ ƒ q Wd  S(   N(   R   RH   RD   RJ   (   t   nt   deltast   is_equalR   t   deltaR)   R"   (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   checkœ   s
    
"i   i
   i4   i   ie   c            s   |  ˆ  d k S(   Ni    (    (   RR   (   t   mult(    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR>   ¨   R?   c         S   s   t  S(   N(   RE   (   RR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR>   ©   R?   i5   iœÿÿÿi    c         S   s   t  S(   N(   RI   (   RR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR>   ª   R?   I        (   t   rangeR&   (   R   RS   R)   t   pow(    (   RT   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_richcompare_boundaries›   s    	

&-c         C   sM   |  j  t d j d	 ƒ d
 } y | d Wn t k
 r; n X|  j d ƒ d  S(   Ni   y              ð?i    y                g¤p=
×£
@y        ¸…ëQ¸@s   modulo parama can't be 0y      ð?      ð?y                y¤p=
×£
@¸…ëQ¸@(   R'   R(   t   __mod__R   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_mod¬   s    c         C   s   |  j  t t d d ƒ d  S(   Ni   y              ð?i    y                y      ð?      ð?y                (   R'   R(   t   divmod(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_divmod·   s    c         C   s¾  |  j  t d d ƒ d ƒ |  j  t d d ƒ d ƒ |  j t t d d ƒ |  j  t d d ƒ d d ƒ |  j  t d d	 ƒ d ƒ |  j t t d d d ƒ d } |  j | d d ƒ |  j | d d d ƒ |  j d d ƒ |  j d d ƒ y d | Wn t k
 rn X|  j d ƒ y d d  Wn t k
 r5n X|  j d ƒ |  j | d | d ƒ |  j | d | d ƒ |  j | d | d ƒ |  j d! d ƒ d" } |  j t t | | d ƒ d  S(#   Ni   y              ð?i    y                g      ð?i   g        iÿÿÿÿiÈ   g¤p=
×£
@y        ¸…ëQ¸@y              @s,   should fail 0.0 to negative or complex poweri   y               @ii   i—ÿÿÿiâÿÿÿgffffff@y        ffffff@y      ð?      ð?y                y                y       @        y                y      ð?      ð?y      ð?      ð?y      ð?      ð?y¤p=
×£
@¸…ëQ¸@y      ð?        y      ð?        y      @       Ày      ð?        yffffff@ffffff@(   R   RV   R'   R(   t
   ValueErrorRC   R   (   R   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_powº   s6    c         C   sV   x8 t  d ƒ D]* } |  j t t ƒ  d t ƒ  d ƒ ƒ q W|  j t d d ƒ ƒ d  S(   Nid   g�íµ ÷Æ°>g        (   R%   R   R   R   (   R   R)   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_boolcontextá   s    (c         C   s#   |  j  t d d ƒ j ƒ  d ƒ d  S(   Ng333333@gš™™™™™#@y        š™™™™™#@y333333@š™™™™™#À(   R   R   t	   conjugate(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_conjugateæ   s    c   
         sÝ	  d de d „  ƒ  Y} d t  f d „  ƒ  Y} |  j t | df ƒ ƒ dg ƒ |  j t | dh ƒ ƒ di ƒ |  j t t | d  ƒ ƒ |  j t t | d  ƒ ƒ |  j t d ƒ dj ƒ |  j t d ƒ dk ƒ |  j t d
 ƒ dl ƒ |  j t d ƒ dm ƒ |  j t dn ƒ do ƒ |  j t d d ƒ dp ƒ |  j t d d ƒ dq ƒ |  j t d d
 ƒ dr ƒ |  j t d d ƒ ds ƒ |  j t d d ƒ dt ƒ |  j t d d
 ƒ du ƒ |  j t d d ƒ dv ƒ |  j t d d ƒ dw ƒ |  j t d d
 ƒ dx ƒ |  j t dy ƒ dz ƒ |  j t d ƒ d{ ƒ |  j t d ƒ d| ƒ |  j t d ƒ d} ƒ |  j t d~ d	 ƒ d ƒ |  j t d d ƒ d€ ƒ |  j t d d ƒ d� ƒ |  j t d d ƒ d‚ ƒ |  j t d	 d ƒ dƒ ƒ |  j t d d ƒ d„ ƒ |  j t d	 d ƒ d ƒ |  j t d d ƒ d ƒ |  j t d ƒ d… ƒ |  j t d ƒ d ƒ |  j t ƒ  d ƒ |  j t d ƒ d ƒ |  j t d ƒ d 
ƒ |  j t d ƒ d† ƒ |  j t d ƒ d‡ ƒ |  j t d" ƒ dˆ ƒ |  j t d# ƒ d‰ ƒ |  j t d% ƒ dŠ ƒ |  j t d& ƒ d‹ ƒ |  j t d' ƒ d ƒ |  j t d( ƒ d ƒ |  j t d) ƒ d ƒ |  j t d* ƒ d+ ƒ |  j t d, ƒ dŒ ƒ |  j t d- ƒ d� ƒ |  j t d. ƒ dŽ ƒ d0 t f d1 „  ƒ  Y} |  j t | d� ƒ ƒ d� ƒ |  j t d2 d3 d4 d5 ƒ d‘ ƒ |  j t d2 d’ ƒ d“ ƒ |  j t d2 d” d4 d5 ƒ d• ƒ |  j t d2 d– d4 d— ƒ d˜ ƒ d< „  } |  j | t d d ƒ j ƒ | d ƒ ƒ |  j | t d d/ ƒ j ƒ | d/ ƒ ƒ |  j | t d d ƒ j ƒ | d ƒ ƒ |  j | t d/ d ƒ j ƒ | d/ ƒ ƒ d™ } |  j	 t | ƒ | k ƒ ~ |  j t t d d ƒ |  j t t d d ƒ t
 j rS|  j t t d= ƒ ƒ dš ƒ n  |  j t t d> ƒ |  j t t d› ƒ |  j t t dœ ƒ |  j t t d� ƒ |  j t t dA ƒ |  j t t d  ƒ |  j t t dB ƒ |  j t t dC ƒ |  j t t d dD ƒ |  j t t d dE ƒ |  j t t d dD ƒ |  j t t dF ƒ |  j t t dG ƒ |  j t t dH ƒ |  j t t dI ƒ |  j t t dJ ƒ |  j t t dK ƒ |  j t t dL ƒ t
 j r×|  j t t t dM ƒ ƒ n  |  j t t dN ƒ |  j t t dO ƒ |  j t t dP ƒ |  j t t dQ ƒ |  j t t dR ƒ |  j t t dS ƒ |  j t t dT ƒ t
 j rŽ|  j t t t d dU ƒ ƒ ƒ t ƒ n  dV t f dW „  ƒ  Y‰  dX dž ‡  f dY †  ƒ  Y} |  j ˆ  t | ƒ  ƒ dZ dŸ d[ „  ƒ  Y} |  j t | d\ ƒ ƒ dE ƒ |  j t d2 | d] ƒ d4 | d^ ƒ ƒ d  ƒ |  j t t | d  ƒ ƒ d_ t f d` „  ƒ  Y} da t f db „  ƒ  Y}	 d0 t f dc „  ƒ  Y} |  j t | d ƒ ƒ dd ƒ |  j t |	 d ƒ ƒ d ƒ |  j t t | d ƒ ƒ d  S(¡   Nt   OSc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   t   value(   R   Rb   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __init__ë   R?   c         S   s   |  j  S(   N(   Rb   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __complex__ì   R?   (   R:   R;   Rc   Rd   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRa   ê   s   	t   NSc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   Rb   (   R   Rb   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRc   î   R?   c         S   s   |  j  S(   N(   Rb   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRd   ï   R?   (   R:   R;   Rc   Rd   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRe   í   s   	i   y              $@s   1+10ji
   y                g      $@l   
 l    g      ð?g…ëQ¸	@i:  g      s@l   :g        i    l    y        …ëQ¸	@g…ëQ¸	Àt   1t   1jy              ð?s   -1iÿÿÿÿs   +1s   (1+2j)y               @s
   (1.3+2.2j)gÍÌÌÌÌÌô?y        š™™™™™@s   3.14+1Js    ( +3.14-6J )y              @s    ( +3.14-J )s    ( +3.14+j )t   Js   ( j )s   +Js   ( -j)y              ð¿s   1e-500s   -1e-500js   -1e-500+1e-500jg       €t   complex2c           B   s   e  Z RS(    (   R:   R;   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRi   "  s    R   i   R   i   y              7@y              G@i   y              @iýÿÿÿy              @c         S   s   t  |  d ƒ S(   s7   Function that produces different results for 0. and -0.g      ð¿(   R   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   split_zeros,  s    s
     3.14+J  s   1+1j ji   y              @R?   s    s   3 9t   2i*   s   1+s   1+1j+1js   --s   (1+2js   1+2j)s   1+(2j)s	   (1+2j)123R   s   1j+2t   1e1ejs   1e++1ejs   )1+2j(s   1..1js   1.11.1js   1e1.1jiô  t   EvilExcc           B   s   e  Z RS(    (   R:   R;   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRm   c  s   t   evilcomplexc              s   e  Z ‡  f d  †  Z RS(   c            s
   ˆ  ‚ d  S(   N(    (   R   (   Rm   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRd   g  s    (   R:   R;   Rd   (    (   Rm   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRn   f  s   t   float2c           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   Rb   (   R   Rb   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRc   m  s    c         S   s   |  j  S(   N(   Rb   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt	   __float__o  s    (   R:   R;   Rc   Rp   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRo   l  s   	g      E@g      1@g      7@t   complex0c           B   s   e  Z d  Z d „  Z RS(   s:   Test usage of __complex__() when inheriting from 'complex'c         S   s   d S(   Ny              E@(    (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRd   x  s    (   R:   R;   t   __doc__Rd   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRq   v  s   t   complex1c           B   s#   e  Z d  Z d d „ Z d „  Z RS(   s3   Test usage of __complex__() with a __new__() methody                c         S   s   t  j |  d | ƒ S(   Ni   (   R   t   __new__(   R   Rb   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRt   }  s    c         S   s   |  S(   N(    (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRd     s    (   R:   R;   Rr   Rt   Rd   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRs   {  s   c           B   s   e  Z d  Z d „  Z RS(   s`   Make sure that __complex__() calls fail if anything other than a
            complex is returnedc         S   s   d  S(   N(   R<   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRd   …  s    (   R:   R;   Rr   Rd   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRi   ‚  s   y              E@(    y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y      $@        y      $@        y      $@        y      $@        y      $@        y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y      ð?      $@y…ëQ¸	@        y…ëQ¸	@        y…ëQ¸	@        y      s@        y      s@        y…ëQ¸	@        y…ëQ¸	@        y…ëQ¸	@        y      s@        y      s@        y…ëQ¸	À        y…ëQ¸	À        y      ð?        y      ð?       @yÍÌÌÌÌÌô?š™™™™™@y…ëQ¸	@      ð?y…ëQ¸	@      Ày…ëQ¸	@      ð¿y…ëQ¸	@      ð?y                y                y                y      ð?      ð?y      ð?      ð?y      1@      7@y      1@      7@y      1@      7@y      1@      7@y      1@      G@y      ð?       @y      @      @y      À      @y…ëQ¸	@      ð?y…ëQ¸	@      ð?y      @      @y      @      @y      @      @(    (    y      1@      7@(   R@   RC   R   R'   RA   R<   R   R   R   R   R    t   have_unicodet   unicodeR\   t   intt   longR&   t   typet	   Exception(
   R   Ra   Re   Ri   Rj   t   cRn   Ro   Rq   Rs   (    (   Rm   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_constructoré   sÜ    	((((			)+c   	         s  d t  f ‡  f d †  ƒ  Y‰  d } ˆ  d
 ƒ ˆ  d ƒ ˆ  d ƒ ˆ  d ƒ ˆ  d ƒ f } d
 d d ˆ  d ƒ ˆ  d ƒ ˆ  d ƒ f } x | D]w } xn | D]f } x] | D]U } d | } d | } |  j t t | ƒ ƒ t t | ƒ ƒ k oï ˆ  k n ƒ q  Wq“ Wq† Wd  S(   Nt   xcomplexc              sË   e  Z ‡  f d  †  Z e Z ‡  f d †  Z e Z ‡  f d †  Z e Z ‡  f d †  Z ‡  f d †  Z	 e Z
 e	 Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d	 †  Z ‡  f d
 †  Z RS(   c            s   ˆ  t  |  ƒ | ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __add__Ž  s    c            s   ˆ  t  |  ƒ | ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __sub__’  s    c            s   ˆ  t  |  ƒ | ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __mul__–  s    c            s   ˆ  t  |  ƒ | ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR    š  s    c            s   ˆ  | t  |  ƒ ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __rdiv__�  s    c            s   ˆ  t  |  ƒ | ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR1   £  s    c            s   ˆ  | t  |  ƒ ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __rfloordiv__¦  s    c            s   ˆ  t  |  ƒ | ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __pow__©  s    c            s   ˆ  | t  |  ƒ ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __rpow__¬  s    c            s   ˆ  t  |  ƒ | ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRX   ¯  s    c            s   ˆ  | t  |  ƒ ƒ S(   N(   R   (   R   R8   (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   __rmod__²  s    (   R:   R;   R~   t   __radd__R   t   __rsub__R€   t   __rmul__R    R�   R!   t   __rtruediv__R1   R‚   Rƒ   R„   RX   R…   (    (   R}   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR}   �  s    t   +t   -t   *s   **t   %s   //t   /i   g     À^@iöÿÿÿy               @i   y             `g@y             €S@i
   y              3@y             ÀU@y             €V@s   x %s ys   y %s x(   RŠ   R‹   RŒ   s   **R�   s   //RŽ   y      $À       @y      @     `g@y      @     €SÀy      $@      3Ày      ð?       @y      ð?     ÀU@y      $@     €V@(   R   R   Ry   t   eval(	   R   t   infix_binopst   xcomplex_valuest   test_valuest   opR   R   R   R   (    (   R}   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_subclassŒ  s    (

c         C   s~  d t  f d „  ƒ  Y} xad d t t t f D]I} x@d d t t t f D](} t  | | ƒ } |  j | j | ƒ |  j | j | ƒ | | | ƒ } |  j t | ƒ | ƒ |  j | j | ƒ |  j | j | ƒ t  | | | ƒ ƒ } |  j t | ƒ t  ƒ |  j | j | ƒ |  j | j | ƒ | t  | | ƒ ƒ } |  j t | ƒ | ƒ |  j | j | ƒ |  j | j | ƒ qJ Wq- Wd  S(   NRi   c           B   s   e  Z RS(    (   R:   R;   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyRi   Å  s   g        g       €(   R   t   INFR-   R   R   R   RH   Ry   (   R   Ri   R   R   R"   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt    test_constructor_special_numbersÃ  s$    c         C   sr   xk t  d d ƒ D]Z } |  j t | ƒ t t | d ƒ ƒ ƒ | d :} |  j t | ƒ t t | d ƒ ƒ ƒ q Wd  S(   Niâÿÿÿi   i    g      @g        (   R%   RC   t   hashR   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt	   test_hashÙ  s    %
c         C   sŠ   g  t  d d ƒ D]3 } t  d d ƒ D] } t | d | d ƒ ^ q# q } x: | D]2 } |  j | j d | j d d t | ƒ ƒ qP Wd  S(   Ni÷ÿÿÿi	   g      @g      @i   g      à?(   R%   R   R   R   R   R   (   R   R   R   t   numst   num(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_absß  s    Ic         C   sï  |  j  t d ƒ d ƒ |  j  t d ƒ d ƒ |  j t d ƒ d ƒ |  j  d t t d ƒ ƒ ƒ |  j  d t t d ƒ ƒ ƒ |  j  d t t d ƒ ƒ ƒ |  j  d t t d ƒ ƒ ƒ |  j  t t d t ƒ ƒ d	 ƒ |  j  t t d t ƒ ƒ d
 ƒ |  j  t t t d ƒ ƒ d ƒ |  j  t t t t ƒ ƒ d ƒ |  j  t t t d ƒ ƒ d ƒ |  j  t t d t ƒ ƒ d ƒ |  j  t t t t ƒ ƒ d ƒ |  j  t t d t ƒ ƒ d ƒ |  j  t t d t ƒ ƒ d ƒ |  j  t t d t ƒ ƒ d ƒ d  S(   Ni   y              @s   (1+6j)s   (1-6j)y                s   (-1+-0j)y              Àg      ð?s   (1+infj)s   (1-infj)s   (inf+1j)s   (-inf+infj)s   (nan+1j)s   (1+nanj)s
   (nan+nanj)i    t   infjs   -infjt   nanjy      ð?      @y      ð?      Ày      ð?        y      ð¿       €y      ð?      Ày      ð?      Ày      ð?      @y      ð?      @(   RC   t   reprt   assertNotEqualR   R•   R-   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt	   test_reprä  s"       c         C   s   |  j  d d ƒ d  S(   Ni   y              @iÿÿÿÿy      ð?      @y      ð¿      Ày      ð¿      À(   RC   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_negû  s    c         C   s¯   d } d	 } d  } zb t t j d ƒ } | | I| IJ| j ƒ  t t j d ƒ } |  j | j ƒ  d | | f ƒ Wd  | d  k	 rš | j rš | j ƒ  n  t j t j ƒ Xd  S(
   Ng¤p=
×£
@y        ¸…ëQ¸@gffffff@y        ffffff@t   wbt   rbs   %s %s
y¤p=
×£
@¸…ëQ¸@yffffff@ffffff@(	   R<   t   openR    t   TESTFNt   closeRC   t   readt   closedt   unlink(   R   R   R   t   fo(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt	   test_fileþ  s    
$c         C   s¦   |  j  d
 j ƒ  d ƒ |  j  d j ƒ  d ƒ |  j  d j ƒ  d ƒ |  j  d j ƒ  d ƒ |  j  t d	 t ƒ j ƒ  d t f ƒ |  j  t t d	 ƒ j ƒ  t d f ƒ d  S(   Ni   y               @g      ð?g       @g       Àg        y               €g       €i    y      ð?       @(   g      ð?g       @y      ð?       À(   g      ð?g       À(   g        g       @(   g        g       €(   RC   t   __getnewargs__R   R•   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_getnewargs  s    %R   R	   c         C   sZ   d \ } } |  j  t | j d ƒ t d d ƒ ƒ |  j  t | j d ƒ t d d ƒ ƒ d  S(   Ny                y               €g      ð¿g        g       €(   y                y               €(   RC   R   R   (   R   t   z1t   z2(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_plus_minus_0j  s    %s   test requires IEEE 754 doublesc         C   sc   |  j  t d ƒ t t d ƒ ƒ |  j  t d ƒ t d t ƒ ƒ |  j  t d ƒ t t t ƒ ƒ d  S(   Nt   1e500g        s   -1e500js   -1e500+1.8e308j(   RC   R   R•   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_overflow  s     c      	   C   si  d d d d d d d t  t g	 } | g  | D] } | ^ q+ 7} xl | D]d } x[ | D]S } t | | ƒ } t t | ƒ ƒ } |  j | j | j ƒ |  j | j | j ƒ qS WqF Wt d ƒ t d ƒ } } t d | ƒ t d | ƒ }	 }
 x| | D]t } xk | D]c } t | | ƒ } t t | ƒ ƒ } |  j d | j d | j ƒ |  j d | j d | j ƒ qú Wqí Wd  S(	   Ng        gÍi    g¬÷N’~hg�(í¾0‰?goƒÀÊ!	@gšd~ÅQJR   R   (	   R•   R-   R   Rž   R   R   R   R&   R�   (   R   t   valst   vR   R   R"   t	   roundtripR   R   Rœ   R�   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_repr_roundtrip$  s$    !c         C   sq  |  j  t dr d ƒ t ds ƒ ƒ |  j  t dt d ƒ t du ƒ ƒ |  j  t d d ƒ t d ƒ ƒ |  j  t d d ƒ t d ƒ ƒ |  j  t dv d ƒ t dw ƒ ƒ |  j  t dx d ƒ t dy ƒ ƒ |  j  t dz d
 ƒ t d{ ƒ ƒ |  j  t d| d ƒ t d} ƒ ƒ d d d d } |  j  t | d ƒ t | ƒ ƒ |  j  t | d
 ƒ t | ƒ ƒ |  j  t | d ƒ t | ƒ ƒ |  j  t | d ƒ t | ƒ ƒ t d d ƒ } |  j  t | d ƒ t | ƒ ƒ |  j  t | d
 ƒ t | ƒ ƒ |  j  t | d ƒ t | ƒ ƒ |  j  t | d ƒ t | ƒ ƒ t d d ƒ } |  j  t | d ƒ t | ƒ ƒ |  j  t | d
 ƒ t | ƒ ƒ |  j  t | d ƒ t | ƒ ƒ |  j  t | d ƒ t | ƒ ƒ |  j  t d~ d ƒ d ƒ |  j  t d d ƒ d ƒ |  j  t d d ƒ d ƒ |  j  t d€ d ƒ d ƒ |  j  t d� d ƒ d ƒ |  j  t d‚ d ƒ d ƒ |  j  t dƒ d ƒ d  ƒ |  j  t d„ d ƒ d! ƒ |  j  t d… d ƒ d# ƒ |  j  t d† d ƒ d$ ƒ |  j  t d‡ d ƒ d& ƒ |  j  t dˆ d' ƒ d( ƒ |  j  t d‰ d) ƒ d( ƒ |  j  t dŠ d* ƒ d+ ƒ |  j  t d‹ d, ƒ d- ƒ |  j  t dŒ d. ƒ d/ ƒ |  j  t d� d2 ƒ d3 ƒ |  j  t dŽ d4 ƒ d5 ƒ |  j  t d� d6 ƒ d7 ƒ |  j  t d� d8 ƒ d9 ƒ |  j  t d‘ d: ƒ d; ƒ |  j  t d’ d< ƒ d= ƒ |  j  t d“ d> ƒ d? ƒ |  j  t d” d@ ƒ dA ƒ |  j  t d• dD ƒ dE ƒ |  j  t d– dF ƒ dG ƒ |  j  t d— dH ƒ dG ƒ |  j  t d˜ dI ƒ dJ ƒ |  j  t d™ dI ƒ dL ƒ |  j  t dš dM ƒ dN ƒ |  j  t d› dO ƒ dP ƒ |  j  t dœ dO ƒ dR ƒ |  j  t d� dT ƒ dU ƒ |  j t dž j dW ƒ |  j t dŸ j dX ƒ |  j t d  j dY ƒ x$ dZ D] } |  j t d¡ j | ƒ qW|  j  d[ j d¢ ƒ d^ ƒ |  j  d_ j t d ƒ d` ƒ |  j  da j t d ƒ db ƒ |  j  d_ j t d ƒ dc ƒ |  j  da j t d ƒ dd ƒ |  j  d_ j t t t ƒ ƒ de ƒ |  j  da j t t t ƒ ƒ df ƒ |  j  d_ j t t t ƒ ƒ dg ƒ |  j  da j t t t ƒ ƒ dh ƒ |  j  d_ j t t t ƒ ƒ di ƒ |  j  da j t t t ƒ ƒ dj ƒ |  j  d_ j t t t ƒ ƒ dk ƒ |  j  da j t t t ƒ ƒ dl ƒ |  j  d_ j t t dm ƒ ƒ dn ƒ |  j  da j t t dm ƒ ƒ do ƒ |  j  d_ j t t t ƒ ƒ dp ƒ |  j  da j t t t ƒ ƒ dq ƒ d  S(£   Ni   y              @R?   g      ø?y              @y        š™™™™™	@i   y                gš™™™™™	@R‹   t   <i   g      @y              Y@t   10g        g      @Rk   g       €g       @t   3t   gs   1+3js   0+3js   1.5+3.5js   +gs	   +1.5+3.5js	   +1.5-3.5js   -gs   1.5-3.5js    gs	    1.5+3.5js	    1.5-3.5jg      ø¿s	   -1.5+3.5js	   -1.5-3.5jy        ßùÿê©ä;s   -1.5-3.5e-20jt   fs   -1.500000-3.500000jt   Ft   es   -1.500000e+00-3.500000e+00js   .2es   -1.50e+00-3.50e+00js   .2Es   -1.50E+00-3.50E+00jg   °ŽðÂy            À\As   .2Gs   -1.5E+10-3.5E+05js   <20gs   1.5+3j              s   *<20gs   1.5+3j**************s   >20gs                 1.5+3js   ^20gs          1.5+3j       s   <20s   (1.5+3j)            s   >20s               (1.5+3j)s   ^20s         (1.5+3j)      g+‡ÙÎ÷ñ?y        –C‹lçû@s   ^20.2s        (1.1-3.1j)     s   20.2fs             1.50+3.00js   >20.2fs   <20.2fs   1.50+3.00j          g0)ˆVC Ds   150000000000000000000.00+3.00js   >40.2fs(             150000000000000000000.00+3.00js   ^40,.2fs(     150,000,000,000,000,000,000.00+3.00j  g|3*¡+TTDs(    1,500,000,000,000,000,000,000.00+3.00j y             p§@s   ,.2fs*   1,500,000,000,000,000,000,000.00+3,000.00jy              à?s   #ft   010fs   =20t   bcdoxXs	   *{0:.3f}*gn†ðù!	@y        �÷ª•	¿@s   *3.142+2.718j*s   {0:f}s   inf+0.000000js   {0:F}s   INF+0.000000js   -inf+0.000000js   -INF+0.000000js   inf+infjs   INF+INFjs   inf-infjs   INF-INFjs	   -inf+infjs	   -INF+INFjs	   -inf-infjs	   -INF-INFji    s   nan+0.000000js   NAN+0.000000js   nan+nanjs   NAN+NANjy      ð?      @y      ð?      @y      ø?      @y      ø?      @y      @        y      @        yš™™™™™	@        yš™™™™™	@        yš™™™™™	@        yš™™™™™	@        yš™™™™™	@        yš™™™™™	@        y      ð?      @y      ø?      @y      ø?      @y      ø?      Ày      ø?      Ày      ø?      @y      ø?      Ày      ø¿      @y      ø¿      Ày      ø¿ßùÿê©ä»y      ø¿      Ày      ø¿      Ày      ø¿      Ày      ø¿      Ày      ø¿      Ày   °ŽðÂ    À\Áy      ø?      @y      ø?      @y      ø?      @y      ø?      @y      ø?      @y      ø?      @y      ø?      @y+‡ÙÎ÷ñ?–C‹lçûÀy      ø?      @y      ø?      @y      ø?      @y0)ˆVC D      @y0)ˆVC D      @y0)ˆVC D      @y|3*¡+TTD      @y|3*¡+TTD     p§@y      ø?      à?y      ø?      à?y      ø?      @y      ø?      à?yn†ðù!	@�÷ª•	¿@(	   RC   R   t   strR   R'   R\   t
   __format__R•   R-   (   R   R"   t   t(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   test_formatA  sœ    ""####$$"""(&   R:   R;   R   R   R   R   R$   R,   R0   R2   R5   RB   RN   RW   RY   R[   R]   R^   R`   R|   R”   t   requires_IEEE_754R–   R˜   R›   R    R¡   R«   R­   R&   R   t
   startswithR°   R   t
   skipUnlessR²   R¶   RÃ   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyR
      sB   														'			£	7						c           C   s-   t  j d t f ƒ � t  j t ƒ Wd  QXd  S(   Ns)   complex divmod.., // and % are deprecated(   R    t   check_warningst   DeprecationWarningt   run_unittestR
   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt	   test_main§  s    	t   __main__(   R   t   testR    R   t   mathR   R   R   R&   R•   R-   t   hasattrt   have_getformatRÆ   R   RÅ   RÄ   R   R
   RÊ   R:   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_complex.pyt   <module>   s   	ÿ ÿ —	