Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main3 #2

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
156 changes: 78 additions & 78 deletions .ipynb_checkpoints/Analyse_numerique_TP1-checkpoint.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
@@ -1,2 +1,2 @@
# Analyse_numeriqueTP
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Noexperience-Team/Analyse_numeriqueTP/main)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Noexperience-Team/Analyse_numeriqueTP/main3)
1 change: 1 addition & 0 deletions requirement.txt
@@ -0,0 +1 @@
numpy==1.17.4
798 changes: 798 additions & 0 deletions tp1/.ipynb_checkpoints/Analyse_numerique_TP1-checkpoint.ipynb

Large diffs are not rendered by default.

116 changes: 63 additions & 53 deletions Analyse_numerique_TP1.ipynb → tp1/Analyse_numerique_TP1.ipynb
Expand Up @@ -20,19 +20,19 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: bigfloat in /home/bacemabr/anaconda3/envs/chatbot1/lib/python3.6/site-packages (0.4.0)\n",
"Requirement already satisfied: six in /home/bacemabr/anaconda3/envs/chatbot1/lib/python3.6/site-packages (from bigfloat) (1.13.0)\n",
"Note: you may need to restart the kernel to use updated packages.\n"
"\n"
]
}
],
"source": [
"pip install bigfloat"
"%load_ext watermark\n",
"%watermark --iversions\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -43,7 +43,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -58,7 +58,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -70,7 +70,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 31,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -149,7 +149,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -193,7 +193,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -205,7 +205,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 34,
"metadata": {},
"outputs": [
{
Expand All @@ -227,7 +227,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 35,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -244,7 +244,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 36,
"metadata": {},
"outputs": [
{
Expand All @@ -267,7 +267,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 37,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -286,7 +286,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 38,
"metadata": {},
"outputs": [
{
Expand All @@ -303,7 +303,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 39,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -345,7 +345,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 40,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -413,7 +413,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 41,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -433,7 +433,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 42,
"metadata": {},
"outputs": [
{
Expand All @@ -446,7 +446,7 @@
"-0.5117446282927461"
]
},
"execution_count": 16,
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -465,11 +465,12 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
"source": [
"#### g1'(x)<0 et |g1'(x)| <1 ==> existe un local dans [1,2] ==> la methode de point fixe converge totalement \n",
"### g1 est d'ordre de convergence au moin 2"
]
},
{
"cell_type": "markdown",
Expand All @@ -492,7 +493,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 43,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -503,7 +504,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 44,
"metadata": {},
"outputs": [
{
Expand All @@ -516,7 +517,7 @@
"-0.12723758423338585"
]
},
"execution_count": 18,
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -528,7 +529,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 45,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -539,7 +540,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 46,
"metadata": {},
"outputs": [
{
Expand All @@ -552,7 +553,7 @@
"-15.509675000000001"
]
},
"execution_count": 20,
"execution_count": 46,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -570,24 +571,33 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
"source": [
"$ g2(x)=\\sqrt{\\displaystyle\\frac{10}{4+x}}=x$<br/>\n",
"$ g2'(x)={\\displaystyle\\frac{-10}{(4+x)^2.2\\sqrt{\\displaystyle\\frac{10}{4+x}}}} $<br/>\n",
"$ g2'(1.365)={\\displaystyle\\frac{-10}{(4+1.365)^2.2\\sqrt{\\displaystyle\\frac{10}{4+1.365}}}}=0 $<br/>\n",
"##### |g2'(x)| < 1 ==> g2 converge\n",
"#### ==> g2 est d'ordre de convergence au moin 2<br/>\n",
"$ g2''(x)=\\displaystyle\\frac{-\\frac{100}{\\sqrt\\frac{10}{(4+x)}}+160\\sqrt\\frac{10}{(4+x)}+40*x\\sqrt\\frac{10}{(4+x)}}{(2(4+x)^2\\sqrt\\frac{10}{(4+x)})^2}$<br/>\n",
"$ g2''(1.365)=\\displaystyle\\frac{-\\frac{100}{\\sqrt\\frac{10}{(4+1.365)}}+160\\sqrt\\frac{10}{(4+1.365)}+40*1.365\\sqrt\\frac{10}{(4+1.365)}}{(2(4+1.365)^2\\sqrt\\frac{10}{(4+1.365)})^2} =0.03557434787513\\approx0 $<br/>\n",
"#### ==> g2 est d'ordre de convergence au moin 3 g2'(1.365)=g2''(1.365)=0"
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
"source": [
"$g3(x)=x-x^3-4x^2+10=x$<br/>\n",
"$g3'(x)=1-8*x-3*x^2$<br/>\n",
"$g3'(1.365)=1-8*1.365-3*1.365^2=-15.509675\\neq0$<br/>\n",
"#### |g3'(x)| > 1\n",
"### => g3 diverge"
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
},
{
Expand All @@ -599,7 +609,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -616,7 +626,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 48,
"metadata": {},
"outputs": [
{
Expand All @@ -633,7 +643,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 49,
"metadata": {},
"outputs": [
{
Expand All @@ -651,7 +661,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 50,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -680,7 +690,7 @@
},
{
"cell_type": "code",
"execution_count": 60,
"execution_count": 51,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -694,7 +704,7 @@
},
{
"cell_type": "code",
"execution_count": 63,
"execution_count": 52,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -722,7 +732,7 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": 53,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -740,7 +750,7 @@
},
{
"cell_type": "code",
"execution_count": 59,
"execution_count": 54,
"metadata": {},
"outputs": [
{
Expand All @@ -756,11 +766,11 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
"source": [
"#### la methode de newton est une cas particulier de la methode de point fixe mais elle a un ordre de convergence superieur a celle de la methode de point fixe et meme de la methode de Dichotpmy . d'autre partie , la methode de point fixe provoque de problem on doit trouver les g(x)=x et verifier si ils converges ou diverges puis on va etudier leurs ordres de convergence . la methode de newton et la plus performante pour trouver une valeur aproxime a x0 pour que f(x0)=0 "
]
}
],
"metadata": {
Expand Down
2 changes: 2 additions & 0 deletions tp1/README.md
@@ -0,0 +1,2 @@
# Analyse_numeriqueTP
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Noexperience-Team/Analyse_numeriqueTP/main)
6 changes: 6 additions & 0 deletions tp2/.ipynb_checkpoints/Untitled-checkpoint.ipynb
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
6 changes: 6 additions & 0 deletions tp2/.ipynb_checkpoints/Untitled1-checkpoint.ipynb
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}