longueurarc.py

Created by francoise-cavanne

Created on April 22, 2018

237 Bytes

longueur approchée arc de parabole


# Type your text here
from math import *
def f(x):
    return x*x


def longueurcourbe(n):
    p=1
    l=0
    for i in range (0,n) :
        l=l+sqrt(1+p*p)
        p=p+2
    return l

longueurapprox=longueurcourbe(4)