ch08_ex91_prof.py

Created by manuel-2de-indice2019

Created on October 14, 2019

204 Bytes


from math import*
def longcarre(n):
    a=0
    L=0
    h=4/n
    for k in range(n):
        o1=a**2
        o2=(a+h)**2
        L=L+sqrt(h**2+(o2-o1)**2)
        a=a+h
    return(L)