derive3e.py

Created by maeldepallens

Created on November 14, 2021

1.67 KB


# Type your text here
def derive_3e_cal() :
    print("Programe qui calcule derive en un nombre pour un plynome du 3e degres")
    print("")
    print("")
    a = float(input("Choix de a : "))
    b = float(input("Choix de b : "))
    c = float(input("Choix de c : "))
    d = float(input("Choix de d : "))
    e = float(input("Antecedent du nb dérive : "))
    A = str(a)
    B = str(b)
    C = str(c)
    D = str(d)
    E = str(e)
    print("")
    print("")
    print("f("+E+"+h) = "+A+"("+E+"+h)**3+"+B+"("+E+"+h)**2+"+C+"("+E+"+h)+"+D)
    print("f("+E+"+h) = "+A+"("+str(e**3)+"+"+str(3*(e**2))+"h+"+str(3*e)+"h**2"+"+**3)+"+B+"("+str(e**2)+"+"+str(2*e)+"h"+"+h**2)+"+C+"("+E+"+h)+"+D)
    print("f("+E+"+h) = "+str(a*(e**3))+"+"+str(a*3*(e**2))+"h+"+str(a*3*e)+"h**2"+A+"h**3+"+str(e**2*b)+"+"+str(2*e*b)+"h"+B+"h**2+"+str(e*c)+"+"+C+"h+"+D)
    print("f("+E+"+h) = "+str((a*(e**3))+(e**2*b)+(e*c)+d)+"+"+str((a*3*(e**2))+(2*e*b)+c)+"h+"+str((a*3*e)+b)+"h**2+"+A+"h**3")
    print("")
    print("f("+E+") = "+A+"*"+E+"**3+"+B+"*"+E+"**2+"+C+"*"+E+"+"+D)
    print("f("+E+") = "+str(a*(e**3))+"+"+str((b*(e**2)))+"+"+str(c*e)+"+"+D)
    print("f("+E+") = "+str((a*(e**3))+(b*(e**2))+(c*e)+d))
    print("")
    print("t = ("+str((a*(e**3))+(e**2*b)+(e*c)+d)+"+"+str((a*3*(e**2))+(2*e*b)+c)+"h+"+str((a*3*e)+b)+"h**2+"+A+"h**3"+"-"+str((a*(e**3))+(b*(e**2))+(c*e)+d)+")/h")
    print("t = ("+str((a*3*(e**2))+(2*e*b)+c)+"h+"+str((a*3*e)+b)+"h**2+"+A+"h**3"+")/h")
    print("t = "+str((a*3*(e**2))+(2*e*b)+c)+"+"+str((a*3*e)+b)+"h+"+A+"h**2")
    print("")
    print("lim t = "+str((a*3*(e**2))+(2*e*b)+c))
    print("h→0")
    print("")
    print("f'("+E+") = "+str((a*3*(e**2))+(2*e*b)+c))

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.