c8capa2a.py

Created by manuel-eleve-tle-techno-indice2020

Created on May 15, 2020

200 Bytes


from math import *

def rectangle(a,b):

    x=a

    u=0

    v=0

    h=(b-a)/2

    for i in range(2):

        u=u+h*sqrt(x)

        v=v+h*sqrt(x+h)

        x=x+h

    return u,v