Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Manu1 U1 Ea Macv
Manu1 U1 Ea Macv
( x ) es de la forma
x 0 para algn
Pn (x)
n
''
n
f ( x0)
f ( x0 )
f (x)
n
k
Pn ( x )=f ( x 0 ) +f ( x 0 ) ( xx 0 ) +
xx 0 ) ++
xx 0 ) =
xx 0 ) .
(
(
(
2!
n!
k!
k=0
'
f ( x )=e x
Alrededor del punto
x 0=0
x=0;
n=2;
for i=1:n
f=1+x+((x^n)/n)
end
Despus me voy a la terminal de ocatve para comprobar dicho valores
>>> x=0;
>>> n=2;
>>> for i=1:n
>>> f=1+x+((x^n)/n);
>>> end
>>> f
f = 1
f ( x i +1 )=f ( x i )+ f ( x i ) ( x i+1x i) + f ( x i )
( x i+ 1x i )
2!
2
n
++ f ( x i )
( x i +1x i )
n!
f ( x )=1+0+
0
=1
2!
Dada esto podemos establecer los siguientes valores para x=0.1 y n=1, 2, 3, 4, 5, y
tenemos como resultado lo siguiente:
>>>
>>>
>>>
>>>
>>>
>>>
f =
>>>
>>>
>>>
>>>
>>>
>>>
f =
>>>
>>>
>>>
>>>
>>>
>>>
f =
>>>
>>>
>>>
>>>
>>>
>>>
f =
>>>
>>>
>>>
>>>
>>>
>>>
f =
x=0.1;
n=1;
for i= 1:n
f=1+x+((x.^n)/n);
end
f
1.2000
x=0.1;
n=2;
for i= 1:n
f=1+x+((x.^n)/n);
end
f
1.1050
x=0.1;
n=3;
for i= 1:n
f=1+x+((x.^n)/n);
end
f
1.1003
x=0.1;
n=4;
for i= 1:n
f=1+x+((x.^n)/n);
end
f
1.1000
x=0.1;
n=5;
for i= 1:n
f=1+x+((x.^n)/n);
end
f
1.1000
f ( x )=1+0.1+
0.1
=1.2
1!
f ( x )=1+0.1+
0.12
=1.105
2!
f ( x )=1+0.1+
0.1
=1.10017
3!
f ( x )=1+0.1+
0.14
=1 .1
4!
f ( x )=1+0.1+
0.1
=1.1
5!
x=2;
n=2;
for i= 1:n
f=1+x+((x.^n)/n);
end
>>>
>>>
>>>
>>>
>>>
>>>
f =
x=2;
n=2;
for i= 1:n
f=1+x+((x.^n)/n);
end
f
5
f ( x )=1+2+
22
=5
2!
Tip: Para hacer un bucle en Octave en el que se ejecutaran las instrucciones que desees
n veces tienes que ocupar la instruccin for con la siguiente sintaxis:
for i=1:n
Instrucciones
end
La variable i ir tomando cada uno de los valores entre 1 y n de uno en uno en cada
ciclo.