partie3_ex68.py

Created by cahier-algo-2de-indice2019

Created on December 03, 2018

210 Bytes


from math import *
def long():
    L=0;x=0;xx=0.2
    while xx<=2:
        y=sqrt(x)
        yy=sqrt(xx)
        L=L+sqrt((xx-x)**2+(yy-y)**2)
        x=x+0.2
        xx=xx+0.2
    return(L)