liste = [10**i for i in range(0, -6, -1)] def secante(a, liste_h): f_a = f(a) coefficients = [... for h in ...] return coefficients
def f(x) return(...) def secante_2(a, list_h): nb_pas = len(liste_h) f_a = f(a) #on évite de refaire le calcul coefficients = #création tableau de la bonne taille for idPas in range(nb_pas): h = ... coefficients[idPas] = ... return coefficients
def f(x) return(...) def secante_3(a, liste_h): f_a = f(a) coefficients = [] # on crée une liste vide for h in range liste_h ... ... return coefficients
Nos manuels sont collaboratifs, n'hésitez pas à nous en faire part.
j'ai une idée !
Oups, une coquille