diff --git a/src/algo_newton.ipynb b/src/algo_newton.ipynb index 1ee093d2ac81c8c704168cf7fa90daac07319f04..452eabd42b868eecf594a75641c9f6e464ffa3e8 100644 --- a/src/algo_newton.ipynb +++ b/src/algo_newton.ipynb @@ -21,36 +21,15 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "ename": "LoadError", - "evalue": "LoadError: syntax: invalid escape sequence\nin expression starting at /Users/gergaud/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - "output_type": "error", - "traceback": [ - "LoadError: syntax: invalid escape sequence\nin expression starting at /Users/gergaud/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - "", - "Stacktrace:", - " [1] top-level scope", - " @ ~/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - " [2] include(fname::String)", - " @ Base.MainInclude ./client.jl:444", - " [3] top-level scope", - " @ In[1]:4", - " [4] eval", - " @ ./boot.jl:360 [inlined]", - " [5] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)", - " @ Base ./loading.jl:1116" - ] - } - ], + "outputs": [], "source": [ "using LinearAlgebra\n", "using Documenter\n", "using Markdown \n", "include(\"Algorithme_De_Newton.jl\")\n", - "# @doc Algorithme_De_Newton" + "@doc Algorithme_De_Newton" ] }, { @@ -62,30 +41,9 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "ename": "LoadError", - "evalue": "LoadError: syntax: invalid escape sequence\nin expression starting at /Users/gergaud/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - "output_type": "error", - "traceback": [ - "LoadError: syntax: invalid escape sequence\nin expression starting at /Users/gergaud/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - "", - "Stacktrace:", - " [1] top-level scope", - " @ ~/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - " [2] include(fname::String)", - " @ Base.MainInclude ./client.jl:444", - " [3] top-level scope", - " @ In[2]:9", - " [4] eval", - " @ ./boot.jl:360 [inlined]", - " [5] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)", - " @ Base ./loading.jl:1116" - ] - } - ], + "outputs": [], "source": [ "using Test\n", "\n", @@ -97,7 +55,9 @@ "include(\"../test/tester_algo_newton.jl\")\n", "include(\"../src/Algorithme_De_Newton.jl\")\n", "\n", - "affiche = false\n", + "affiche = false # Mettre affiche = true pour afficher les résultats \n", + "\t\t\t\t# des appels à l'algorithme de Newton. Cela peut vous\n", + "\t\t\t\t# servir pour les réponses aux questions en fin de notebook.\n", "\n", "@testset \"Test algo newton\" begin\n", "\t# Tester l'algorithme de Newton\n", @@ -107,30 +67,9 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "ename": "LoadError", - "evalue": "LoadError: syntax: invalid escape sequence\nin expression starting at /Users/gergaud/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - "output_type": "error", - "traceback": [ - "LoadError: syntax: invalid escape sequence\nin expression starting at /Users/gergaud/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - "", - "Stacktrace:", - " [1] top-level scope", - " @ ~/git-ENS/optimisation-numerique/projet-optinum/src/Algorithme_De_Newton.jl:42", - " [2] include(fname::String)", - " @ Base.MainInclude ./client.jl:444", - " [3] top-level scope", - " @ In[3]:7", - " [4] eval", - " @ ./boot.jl:360 [inlined]", - " [5] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)", - " @ Base ./loading.jl:1116" - ] - } - ], + "outputs": [], "source": [ "#using Pkg; Pkg.add(\"LinearAlgebra\"); Pkg.add(\"Markdown\")\n", "# using Documenter\n", @@ -189,28 +128,23 @@ "$$ f_{2} : \\mathbb{R}^2 \\rightarrow \\mathbb{R}$$ $$ (x_1,x_2) \\mapsto 100(x_2-x_1^2)^2 + (1-x_1)^2 $$ \n", "\n", "Justifier que l’algorithme puisse ne pas converger pour $f_{2}$ avec certains points initiaux.\n", - "\n" + "\n", + "**Remarque.** Vous pouvez mettre `affiche=true` dans les tests de l'algorithme de Newton pour\n", + "vous aider.\n" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { "kernelspec": { - "display_name": "Julia 1.6.6", + "display_name": "Julia 1.8.2", "language": "julia", - "name": "julia-1.6" + "name": "julia-1.8" }, "language_info": { "file_extension": ".jl", "mimetype": "application/julia", "name": "julia", - "version": "1.6.6" + "version": "1.8.2" } }, "nbformat": 4,