Vous êtes sur la page 1sur 5

UNIVERSIDAD CATLICA SANTA MARA

FACULTAD DE CIENCIAS E INGENIERAS FSICAS Y


FORMALES

PROGRAMA PROFESIONAL DE
INGENIERIA ELECTRONICA
2 TRABAJO DE METODOS NUMERICOS
INTEGRANTE:
DAVID CHOQUENAIRA FLOREZ
AREQUIPA-PERU

2013

EJERCICIOSDEMTODOS NUMRICOS
Programa Profesional: Ingeniera Electrnica
1. Escribir los comandos MATLAB para resolver la ecuacin matricial:

for i=1:10
if( mod(i,2)== 0)
for j=2:2:10
A(i,j)= i;
end
for k =1:2:9
A(i,k)= -i;
end
else
for j=2:2:10
A(i,j)= -i;
end
for k =1:2:9
A(i,k)=i;
end
end
end

for i=1:10
for j=1:10
if i==j
B(i,j)= 3;
else
B(i,j)= 2;
end
end
end

>>X=(2/3)*B*inv((A/3)-eye(10))

2. Hallar el polinomio P(x) que interpola los siguientes puntos, luego halle P(0).
x
-a
A
2a
y
4
-1
3

>> xx=[-1 1 2 3];yy=[-7 -1 -13 10];


>> interp1(xx,yy,0,'spline')
ans =
12.2500

4. Dado los

Escribalos comandos que permitan


a. Graficar el polinomio residuo que resulta de dividir P entre Q
>> a=[1 0 -sqrt(2) pi 0 3.456];
>> b=[3*sqrt(2) -2 3*pi];
>> c=[-1 0 0 -2.35 0 7.8 -2*pi];

>> p=conv(a,b)+[0 c]
p=
Columns 1 through 6
4.2426 -3.0000

3.4248 16.1571 -21.9618 44.2714

Columns 7 through 8

0.8880 26.2888
>> q=[1 -3 0 1];
>> [c,r]=deconv(p,q)
c=
4.2426

9.7279 32.6085 109.7401 297.5304

r=
Columns 1 through 6
0

0 904.2542

Columns 7 through 8
>> x=-10:0.01:10;
>> y=polyval(r,x);
>> plot(x,y)
4

10

x 10

-2
-10

-8

-6

-4

-2

b. Hallar las races de este polinomio residuo


>> roots(r)

ans =
0.6112
-0.4908

10

Vous aimerez peut-être aussi