home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
dos
/
fr
/
tviacs30
/
testiacs.fic
< prev
next >
Wrap
Text File
|
1994-09-04
|
8KB
|
263 lines
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
INTEGRATION NUMERIQUE
Methode des trapezes
Test: f(x)= 1/X a = 1.000 b =2.000
pour N = 100 subdivisions
Valeur approchée de l'intégrale : 6.9315343048E-01
_____________________________________________________________
Méthode de Simpson
Test: f(x)= 1/X a = 1.000 b =2.000
pour N = 100 subdivisions
Valeur approchée de l'intégrale : 6.9314718058E-01
_____________________________________________________________
Méthode de Bool Villarceau
Test: f(x)= 1/X a = 1.000 b =2.000
pour N = 100 subdivisions
Valeur approchée de l'intégrale : 6.9314718055E-01
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Méthode de Lagrange
N= 3 Points d'interpolation
X[0]=-1.000
X[1]=0.000
X[2]=1.000
Y[0]=1.000
Y[1]=0.000
Y[2]=2.000
Valeur prise par le Polynome interpolé...
P(1.000)= 2.000
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Méthode d'Horner
Polynome Initial:
X^5 -6X^4 +8X^3+ 8X^2+4X-40
N=5
A[5]= 1.0
A[4]= -6.0
A[3]= 8.0
A[2]= 8.0
A[1]= 4.0
A[0]=-40.0
Coefficients d'Horner...
B[5]= 1.0
B[4]= -3.0
B[3]= -1.0
B[2]= 5.0
B[1]= 19.0
B[0]= 17.0
X0=3.0
B0 = P(3.00)= 17.0
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Résolution numérique des équations différentielles du premier ordre
Méthode d'Euler Runge Kutta d'ordre 1 notée RK1
Test: y'=f(t,y)= -2*t*y
solution exacte: y = exp(-t²)
Conditions initiales:
t0 = 0.00
y0 = 1.00
tmax = 1
nombre pas = 10
Précision de la méthode
Xi Yi Solution Exacte (Yi-Solution Exacte)
0.00 1.000000 1.000000 0.0000000000E+00
0.10 1.000000 0.990050 9.9501662508E-03
0.20 0.980000 0.960789 1.9210560848E-02
0.30 0.940800 0.913931 2.6868814729E-02
0.40 0.884352 0.852144 3.2208211032E-02
0.50 0.813604 0.778801 3.4803056928E-02
0.60 0.732243 0.697676 3.4567129930E-02
0.70 0.644374 0.612626 3.1747847097E-02
0.80 0.554162 0.527292 2.6869423457E-02
0.90 0.465496 0.444858 2.0637885677E-02
_____________________________________________________________
Méthode du Point Milieu notée RK2
Test:
y'=f(t,y)= -2*t*y
Solution exacte:
y = exp(-t²)
Conditions initiales:
t0= 0.00 y0 = 1.00 tmax=1 nombre pas = 10
Xi Yi Solution Exacte (Yi-Solution Exacte)
0.00 1.000000 1.000000 0.0000000000E+00
0.10 0.990000 0.990050 4.9833749472E-05
0.20 0.960597 0.960789 1.9243915176E-04
0.30 0.913528 0.913931 4.0343827004E-04
0.40 0.851499 0.852144 6.4457598728E-04
0.50 0.777930 0.778801 8.7110209279E-04
0.60 0.696636 0.697676 1.0402967537E-03
0.70 0.611507 0.612626 1.1192876491E-03
0.80 0.526202 0.527292 1.0905588706E-03
0.90 0.443904 0.444858 9.5417276361E-04
_____________________________________________________________
Méthode de Heune RK2
Test:y'=f(t,y)= -2*t*y
solution exacte:
y = exp(-t²)
Conditions Initiales:t0= 0.00 y0 = 1.00 tmax=1 nombre pas = 10
Xi Yi Solution Exacte (Yi-Solution Exacte)
0.00 1.000000 1.000000 0.0000000000E+00
0.10 0.990000 0.990050 4.9833749472E-05
0.20 0.960696 0.960789 9.3439151897E-05
0.30 0.913814 0.913931 1.1715007076E-04
0.40 0.852040 0.852144 1.0358254622E-04
0.50 0.778765 0.778801 3.6034402001E-05
0.60 0.697773 0.697676 9.6888737971E-05
0.70 0.612924 0.612626 2.9759770405E-04
0.80 0.527850 0.527292 5.5771776988E-04
0.90 0.445717 0.444858 8.5859352384E-04
_____________________________________________________________
Méthode RK4
y'=f(t,y)= -2*t*y
solution exacte:
y = exp(-t²)
t0= 0.00 y0 = 1.00 tmax=1 nombre pas = 10
Xi Yi Solution Exacte (Yi-Solution Exacte)
0.00 1.000000 1.000000 0.0000000000E+00
0.10 0.990050 0.990050 4.1563907871E-10
0.20 0.960789 0.960789 3.9162841858E-09
0.30 0.913931 0.913931 1.1251358956E-08
0.40 0.852144 0.852144 1.6499143385E-08
0.50 0.778801 0.778801 2.5265762815E-09
0.60 0.697676 0.697676 6.1108949012E-08
0.70 0.612627 0.612626 2.1580854082E-07
0.80 0.527293 0.527292 5.0650305639E-07
0.90 0.444859 0.444858 9.7046768133E-07
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Méthodes Itératives pour la résolution d'équation f(x)=0
Point Fixe:
Test:
f(x)=atan(x)-x/2
se transforme en g(x)=x avec
g(x)=2*atan(x)
x0 = 2.3
précision=0.0001
1 2.3307733483 erreur: 0.0007733483 gprime: 1.00
2 2.3310138659 erreur: 0.0002405175 gprime: 0.24
3 2.3310886413 erreur: 0.0000747754 gprime: 0.07
Valeur Approchée= 2.3310886413
erreur=0.0000747754
_____________________________________________________________
Newton
test:
f(x)=atan(x)-x/2
x0 = 2.3
nombre d'itérations = 10
1 2.331123 0.001123
2 2.331122 0.000000
3 2.331122 0.000000
4 2.331122 0.000000
5 2.331122 0.000000
6 2.331122 0.000000
7 2.331122 0.000000
8 2.331122 0.000000
9 2.331122 0.000000
10 2.331122 0.000000
Valeur Approchee= 2.3311223704
Precision= 0.0000000000E+00
_____________________________________________________________
Regula Falsi
f(x)=atan(x)-x/2
X0 = 2.3 x1= 2.33112237
1 2.4000000000 0.0692215145
2 2.3307784855 0.0003401434
Valeur Approchée= 2.3311186290
erreur=0.0003401434
_____________________________________________________________
Lagrange
f(x)=atan(x)-x/2
X0 = 2.3 x1= 2.33112237
1 2.3310767062 0.0310767062
2 2.3311223045 0.0000455982
Valeur Approchée= 2.3311223045
erreur=0.0000455982
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Calcul Matriciel
Matrice A:
4.000 5.000 1.000 1.000
2.000 1.000 2.000 0.000
1.000 2.000 1.000 1.000
4.000 5.000 1.000 2.000
Matrice B:
1.000 2.000 4.000 1.000
0.000 0.000 0.000 1.000
2.000 0.000 0.000 1.000
2.000 5.000 4.000 1.000
Matrice Produit A* B..
Matrice Résultante:
8.000 13.000 20.000 11.000
6.000 4.000 8.000 5.000
5.000 7.000 8.000 5.000
10.000 18.000 24.000 12.000
_____________________________________________________________
Résolution Système linéaire par la méthode du Pivot de GAUSS
du système:
A X = B
-4 3 2 1 X1 18
5 -4 3 2 X2 10
6 5 -4 3 X3 2
7 6 5 -4 X4 -6
Matrice Réduite de GAUSS à Pivot Total
-4.0 3.0 2.0 1.0
0.0 1.0 -22.0 -13.0
0.0 0.0 -832.0 -512.0
0.0 0.0 0.0 -45056.0
Résolution du Système Réduit A"X=B
Solutions
X4= 5.0
X3= 3.0
X2= 1.0
X1=-1.0
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Méthode des Moindres Carrés..
x[i] = -2,-1, 0,+1,+2
y[i] = +1,+2,+2,+3,+4
Droite des moindres carrés:
y = 0.70* X + 2.40
//////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////