Aplicatia 3
Aplicatia 3
Aplicatia 3
x =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
>> f=cos(2*x)
f =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
y =
-5 -4 -3 -2 -1 0 1 2 3 4 5
>> gi=sin(y)-cos(y).*sqrt(y)
gi =
Columns 1 through 5
Columns 6 through 10
Column 11
-1.5932 + 0.0000i
>> plot(gi,'g')
>> %ex2%
>> t=[0:pi/12:2*pi]
t =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
>> x=r*(t-sin(t))
x =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
y =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
>> plot(x,y)
>> %b%
>> a=3
a =
>> b=5
b =
>> r=7
r =
>> x=a+r*cos(t)
x =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
6.5000 7.9497 9.0622 9.7615 10.0000
>> y=b+r*sin(t)
y =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
>> plot(x,y)
>> %c%
>> h=b*cos(2*t)-a*cos(t)
h =
Columns 1 through 10
Columns 11 through 20
Columns 21 through 25
>> plot(h)