Documentos de Académico
Documentos de Profesional
Documentos de Cultura
al Republicii Moldova
RAPORT
despre lucrarea de laborator Nr. 3
la Mecanică realizată în MATLAB
Chişinău – 2019
Sarcina Lucrării nr. 3
1
11 f x 2sin x 0.05,1
2x
geofunction.m
function y=geofunction(x);
y=cos(6.*pi.*11-arctan(x.^x));
consola
>> x=[0:0.05:1];
>> y=geofunction(x);
>> figure(2);
>> fplot('geofunction(x)',[0,1]);
2
1
0.8
0.6
0.4
0.2
-0.2
-0.4
-0.6
-0.8
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
3
11 x t 3sin t y t 2cos sin t 0, 4
a) xy.m
function [x,y]=xy(t);
x=3.*sin(t) ;
y=2.*cos(sin(t))
figpas.m
function figpas(fig,pas);
consola
>> tmax=4*pi;
>> t=0:0.1:tmax;
>> [x,y]=xy(t);
>> comet(x,y);
>> plot(x,y);
MODIFICAT :
4
2
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1
-3 -2 -1 0 1 2 3
>> hold on
>> t=tmax*rand;
>> [x,y]=xy(t);
>> plot(x,y,'r*-');
>> hold on
>> grid on
>> xlabel('axa-Ox');
>> ylabel('axa-Oy');
5
20
y=f(x), Traiectoria
0
-20
-40
-60
axa-Oy
-80
-100
-120
-140
-160
-180
-0.2 0 0.2 0.4 0.6 0.8 1 1.2
axa-Ox
>> tmax=2*pi;
>> t=0:0.3:tmax;
>> [x,y]=xy(t);
>> figure(1);
>> comet(x,y);
>> plot(x,y);
>> hold on
>> t=tmax*rand;
>> [x,y]=xy(t);
>> plot(x,y,'r*-');
>> hold on
>> grid on
>> xlabel('axa-Ox');
>> ylabel('axa-Oy');
6
20
y=f(x), Traiectoria
0
-20
-40
-60
axa-Oy
-80
-100
-120
-140
-160
-180
-0.2 0 0.2 0.4 0.6 0.8 1 1.2
axa-Ox
x=3.*sin(t) ;
vx=diff(x);
vx=diff(x)
vx =-(3.*sin(t))-(3.*cos(t));
t=1;
vx =-(3.*sin(t))-(3.*cos(t));
vx = -4.1453
>> syms t;
>> y=2.*cos(sin(t));
>> vy=diff(y)
vy =3.*cos(t)+ 3.*sin(t)
>> t=1;
>> vy =3.*cos(t)+ 3.*sin(t)
vy = 4.1453
>> v=(vx^2+vy^2)^(1/2)
7
v = 5.8624
>> syms t;
>> vx =-3.*sin(t)-3*2.*cos(sin(t));
>> ax=diff(vx)
ax =2*exp(-t)*sin(t)
>> t=1;
>> ax =2*exp(-t)*sin(t)
ax =0.6191
>> syms t;
>> vy =exp(t)*sin(t)+exp(t)*cos(t);
>> ay=diff(vy);
>> ay=diff(vy)
ay =2*exp(t)*cos(t)
>> t=1;
>> ay =2*exp(t)*cos(t)
ay = 2.9374
>> a=(ax^2+ay^2)^(1/2)
a = 3.0019
>> at=abs((vx*ax+vy*ay))/v
>> ax =0.6191;
>> ay =2.9374;
>> vy =3.7560;
>> vx =-0.5083;
>> v =3.7903;
>> at=abs((vx*ax+vy*ay))/v
at = 2.8278
>> a =3.0019;
>> an=abs(a-at)
an =0.1741
>> p=v^2/an
p =82.5149
c)
8
20
y=f(x), Traiectoria
0
-20
-40
-60
axa-Oy
-80
-100
-120
-140
-160
-180
-0.2 0 0.2 0.4 0.6 0.8 1 1.2
axa-Ox
d)
t v a at an p
1 3.7903 m/s 3.0019 m/s^2 2.8278 m/s^2 0.1741 m/s^2 82.5149
9
11 x t t 1 cos 2t y t t sin 2t z t 1.3t 0,3
a) xyz.m
function [x,y,z]=xyz(t);
x=t.*(1-cos(2.*t))
y=t.*sin(2.*t)
z=1.3.*t;
figpas.m
function figpas(fig,pas);
consola
>> tmax=4*pi;
>> t=0:0.1:tmax;
>> [x,y,z]=xyz(t);
>> figure(2);
>> comet3(x,y,z);
>> plot3(x,y,z);
>> hold on
>> t=tmax*rand;
>> [x,y,z]=xyz(t);
>> plot3(x,y,z,'r*-');
10
>> title(['t=',num2str(t)]);
>> hold on
>> grid on
>> xlabel('axa-Ox');
>> ylabel('axa-Oy');
>> zlabel('axa-Oz');
t=5.7194
y=f(x), Traiectoria
20
15
axa-Oz
10
0
10
5 20
0 10
-5 0
axa-Oy -10 -10 axa-Ox
>> tmax=4*pi;
>> t=0:1:tmax;
>> [x,y,z]=xyz(t);
>> figure(1);
>> comet3(x,y,z);
>> plot3(x,y,z);
>> hold on
>> t=tmax*rand;
>> [x,y,z]=xyz(t);
11
>> plot3(x,y,z,'r*-');
>> title(['t=',num2str(t)]);
>> hold on
>> grid on
>> xlabel('axa-Ox');
>> ylabel('axa-Oy');
>> zlabel('axa-Oz');
t=4.3021
y=f(x), Traiectoria
12
10
8
axa-Oz
0
10
5 20
0
10
-5
axa-Oy -10 0 axa-Ox
b)
>> syms t;
>> x=cos(t);
>> vx=diff(x)
vx =-sin(t)
>> t=1;
>> vx =-sin(t)
12
vx =-0.8415
>> syms t;
>> y=sin(sin(t));
>> vy=diff(y);
>> vy=diff(y)
vy =cos(sin(t))*cos(t)
>> t=1;
>> vy =cos(sin(t))*cos(t)
vy =0.3600
>> syms t;
>> z=2*t^(1/2);
>> vz=diff(z)
vz =1/t^(1/2)
>> t=1;
>> vz =1/t^(1/2)
vz = 1
>> v=(vx^2+vy^2+vz^2)^(1/2)
v = 1.3556
>> syms t;
>> vx =-sin(t);
>> ax=diff(vx)
ax =-cos(t)
>> t=1;
>> ax =-cos(t)
ax =-0.5403
>> syms t;
>> vy =cos(sin(t))*cos(t);
>> ay=diff(vy)
ay =-sin(sin(t))*cos(t)^2-cos(sin(t))*sin(t)
>> t=1;
13
>> ay =-sin(sin(t))*cos(t)^2-cos(sin(t))*sin(t)
ay = -0.7784
>> syms t;
>> vz =1/t^(1/2);
>> az=diff(vz)
az =-1/2/t^(3/2)
>> t=1;
>> az =-1/2/t^(3/2)
az =-0.5000
>> ax =-0.5403
ax = -0.5403
>> ay =-0.7784;
>> az =-0.5000;
>> a=(ax^2+ay^2+az^2)^(1/2)
a = 1.0714
>> vx =-0.8415;
>> vy =0.3600;
>> vz =1;
>> v =1.3556;
>> at=abs((vx*ax+vy*ay+vz*az))/v
at =0.2402
>> an=a-at
an = 0.8312
>> p=v^2/an
p = 2.2108
c)
t v a at an p
1 1.3556 m/s 1.0714 m/s^2 0.2402 m/s^2 0.8312 m/s^2 2.2108
Concluzie:
14
După ce am elaborat această lucrare am însușit sintaxa sistemului MATLAB, am
însușit comenzile de bază a acestui sistem .
15