Documente Academic
Documente Profesional
Documente Cultură
RAPORT
despre lucrarea de laborator nr.1
La Mecanic realizat n MATLAB
Tema Elemente ale programului MATLAB
Varianta : 18
Chiinu 2013
Moscalu Adrian
Vasile Rusu
>> h=(b-a)/(n-1)
h=
1.7952
>> x=a:h:b
x=
Columns 1 through 4
-3.1416 -1.3464
0.4488
2.2440
Columns 5 through 8
4.0392
5.8344
7.6296
9.4248
>> y=exp(x).*cos(x).*(x.^3+3)
y=
1.0e+007 *
Columns 1 through 4
0.0000
0.0000
0.0000 -0.0000
Columns 5 through 8
-0.0002
>>
0.0062
0.0205 -1.0411
Concluzia :
h=
1.7952
>> x=a:h:b
x=
Columns 1 through 4
-3.1416 -1.3464
0.4488
2.2440
Columns 5 through 8
4.0392
5.8344
7.6296
9.4248
>> y=exp(x).*cos(x).*(x.^3+3)
y=
1.0e+007 *
Columns 1 through 4
0.0000
0.0000
0.0000 -0.0000
Columns 5 through 8
-0.0002
>>
0.0062
0.0205 -1.0411