
WZc           @   s   d  d d  Z  d S(   gư>id   c         C   s   | } | } | | g } t  } d }	 x | s |  |  |  |  | | }
 | |  |  |
 } t |  |   | k  r t } n  t | |  | k  r t } n  |	 | k r t } n  | } | } | j |  |	 d 7}	 q' W| S(   Ni    i   (   t   Falset   abst   Truet   append(   t   ft   x0t   x1t   epst   maxiterationt   xk0t   xk1t   xst   stopt	   iterationt   dfkt   xk(    (    sZ   /usr/local/Slides/1_Disciplines/1_CN/1_Functions/0_Zeros/5_Secante/99_Activities/Secant.pyt   Secant   s&    	 	 	 	N(   R   (    (    (    sZ   /usr/local/Slides/1_Disciplines/1_CN/1_Functions/0_Zeros/5_Secante/99_Activities/Secant.pyt   <module>   s    