# Type your text here def tangent3e() : print("Quelle est ta fonction") 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 nombre dérive : ")) A = str(a) B = str(b) C = str(c) D = str(d) E = str(e) nb = (3*a*(e**2))+(2*b*e)+c 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)) print("On sait que le coefficient directeur est egal au nombre derivé donc :") print("") print("y = "+str(nb)+"x+b") print(str(a*(e**3)+b*(e**2)+c*e+d)+" = "+str(nb)+"*"+E+"+b") print("b = "+str(a*(e**3)+b*(e**2)+c*e+d)+"-"+str(nb*e)) print("b = "+str((a*(e**3)+b*(e**2)+c*e+d)-(nb*e))) print("") print("y = "+str(nb)+"x+"+str((a*(e**3)+b*(e**2)+c*e+d)-(nb*e)))