Énoncés des problèmes
177
✞
☎
function [x,y,ue,uh]=diffini(n);
%x ,y maillage ,u e, solution exacte,u h, solution approchee
%n um\’erotation des points
%* (1,n+2)---------------*(n+2,n+2)
%|
|
%|
|
%|
*(i,j)
|
%|
%* (1,2) --*(2,2)--*(n+2,2)
%|
||
%* (1,1) --*(2,1)--*(n+2,1)
%
%i nconnues uh(i,j)a pproximation de u[(i-1)*h,(j-1)*h], i,j=2,n+1
✝
✆
Rajouter un dessin de la solution approchée.
✞
☎
>> plaque
n=
10
erriteration =9 .8289e-011
maxiter-iter =7 47
||sol ex-sol app|| =0 .0034
erreur*(n+1)^2 =0 .4087
✝
✆
0
0.5
1
0
0.5
1
−1
−0.5
0
0.5
1
S olution approchée
0
0.5
1
0
0.5
1
−1
−0.5
0
0.5
1
S olution exacte
 Dunod –Laphotocopie non autorisée est un délit
Précédent

- 156/188

Suivant