X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/cours-mesi.git/blobdiff_plain/d1778cd1db87ac86b892c6d65935e6ee1abc95a3..refs/heads/master:/tps/chap3/ordre.py diff --git a/tps/chap3/ordre.py b/tps/chap3/ordre.py index 95517ff..00283a8 100644 --- a/tps/chap3/ordre.py +++ b/tps/chap3/ordre.py @@ -22,16 +22,17 @@ def ordre_convergence(X,l=None) : def main(): - print "TP 3.2 ............ ordre convergence corde" - print ordre_convergence(iteration_corde(0,pi/2,0,200,0.00000001,f)[1]) + print "TP 4.2 ............ ordre convergence corde" + print ordre_convergence(iteration_corde(0,pi/2,0,200,1E-9,f)[1]) - print "TP 3.2 ............ ordre convergence newton" - print ordre_convergence(iteration_newton(0,200,0.00000001,f,fp)[1]) + print "TP 4.2 ............ ordre convergence lagrange" + print ordre_convergence(iteration_lagrange(0,pi/2,200,1E-9,f)[1]) - print "TP 3.1 ............ ordre convergence lagrange" - print ordre_convergence(iteration_lagrange(0,pi/2,200,0.00000001,f)[1]) + print "TP 4.2 ............ ordre convergence newton" + print ordre_convergence(iteration_newton(0,200,1E-9,f,fp)[1]) + if __name__ == '__main__':