**TI83F*

Created by TI-Smartview CE 5.4.0.1858     ¬ ›C8TP3P    ›™PYCDp08.py import ti_plotlib as plt
def Aire_trap(n):
    plt.cls()
    plt.window(-.1,1.1,-.1,2.1)
    plt.axes("on")
    plt.color(255,128,64)

    h=1/n
    x=0
    S=0
    for k in range(n):
        b=f(x)
        B=f(x+h)
        # construction du trapĂ¨ze
        trap=plt.plot([x,x,x+h,x+h,x],[0,f(x),f(x+h),0,0],'.')
        S=S+trapeze(B,b,h)
        x=x+h
    # affichage    
    plt.show_plot() 
Čo