Documentos de Académico
Documentos de Profesional
Documentos de Cultura
y=x 3 x +2 x + x +2
En forma agrupada
(b)
y=3 x 5 +2 x 3 + x 2+ 7
En forma agrupada
2
y=( ( ( 3 x + 2 ) x +1 ) x + 7)
4.3) Escriba los siguientes polinomios en forma de serie de potencias
empleando (i)poly y (ii)polyfit.
4
0.0000
v ( x )=
Command Window:
>> x= 1:0.5:3.5;
>> y= ((x-1).*(x-2.5).*(x-4).*(x-6.1).*(x-7.2).*(x-10))./((5-1)...
.*(5-2.5).*(5-4).*(5-6.2).*(5-7.2).*(5-10))
y=
0 2.1105 1.2921
0 -0.6905 -0.5921
>> a= polyfit(x,y,length(x)-1)
a=
0.1311 -2.2305 14.7911 -46.4180 66.4025 -32.6761
Polinomio:
v(x) = 0.1311x5-2.2305x4+ 14.7911x3 -46.4180x2 + 66.4025x -32.6761
4.7) Un polinomio tiene tres races: -2,1 y 2. Si el polinomio y se convierte en y
(0)=1, determine el polinomio en forma de serie de potencias.
Command Window:
>> r = [-2, 1, 2]
r=
-2
1
2
>> poly(r)
ans =
1 -1 -4
4
Polinomio
y=x x 4 x+ 4
4.9) Determine el polinomio en forma de serie de potencias que pasa por cada
uno de los siguientes conjuntos de datos
a) (-1,1), (1,4)
Orden del polinomio ajustado a dos puntos de datos g(x)=
c 1 x +c 2
c 1 (1 ) +c 2=1
c 1 ( 1 ) +c 2=4
Resolviendo las ecuaciones por el mtodo de sumas y restas
C1=1.5 y C2=2.5
POLINOMIO:
y=1.5 x +2.5
c 1 x 2 +c 2 x +c 3
c 1 (2 ) +c 2 (2 ) +c 3=2
2
c 1 ( 0 ) + c2 ( 0 ) +c 3=1
2
c 1 ( 2 ) +c 2 ( 2 )+ c3 =1
Resolviendo:
4 c1 2 c2 =3
4 c1 +2 c 2=2
c 1=0.625
c 2=0.25
c3
=-1
POLINOMIO: y=
0.625 x2 0.25 x1
c 1 x +c 2 x +c 3 x +c 4
Ajustando el polinomio a cada uno de los puntos:
c 1 (1)3 +c 2 (1)2 +c 3 (1 ) +c 4 =1
c 1 (0) + c 2(0) + c3 ( 0 ) +c 4 =0
c 1 (1)3 +c 2 (1)2+ c 3 ( 1 ) +c 4 =2
3
c 4 =0
c1 +c 2c3 =1
c 1+ c 2+ c3 =2
8 c 1+4 c2 +2 c 3=5
X
0.25
0.5
0.75
1.0
F(X)
0.8109
0.6931
0.5596
0.4055
EJERCICIO 4.18
1.6
1.4
1.2
1
>>plot(x,y),grid,
title('EJERCICIO 4.18')
0.8
0.6
0.4
0.2
0
0.2
0.4
0.6
0.8
1.2
1.4
1.6
( x2 )( x3 )( x4)
( 12 ) (13 ) (14)
( x1 )( x3 ) ( x 4)
(21 )( 23 ) (24)
( x1 )( x2 ) ( x4 )
( 31 )( 32 ) (34 )
( x1 ) ( x 2 )( x3 )
( 41 )( 42 )( 43 )
Grafique las cuatro funciones anteriores.
Command Window:
>>x=1:0.01:4;
>>y=((x-2).*(x-3).*(x-4))./(-6);
plot(x,y)
xlabel('x'); ylabel('y')
title('GRFICO LAGRANGE 1')
text(2,0.10,'Curva de polinomio 1')
grid on
>>x=1:0.05:4;
>>y=((x-1).*(x-3).*(x-4))./(2);
>>plot(x,y)
>>xlabel('x'); ylabel('y')
>>title('GRFICO LAGRANGE 2')
>>text(2.2,0.30,'Curva de polinomio 2')
>>grid on
>>x=1:0.09:4;
>>y=((x-1).*(x-2).*(x-4))./(-2);
>>plot(x,y)
>>xlabel('x'); ylabel('y')
>>title('GRFICO LAGRANGE 3')
>>text(2.05,0.5,'Curva de polinomio 3')
>>grid on
>>x=1:0.09:4;
>>y=((x-1).*(x-2).*(x-4))./(6);
>>plot(x,y)
>>xlabel('x'); ylabel('y')
>>title('GRFICO LAGRANGE 4')
>>text(2.45,-0.15,'Curva de polinomio 4')
>>grid on