X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/cours-mesi.git/blobdiff_plain/f4fb6abd4d0ca7a866d0cba93347244e9797040a..2db144d6141d827fa394d04e7e4ef6771c7089ee:/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__':