You are on page 1of 4

ESCUELA PROFESIONAL DE ING.

ELECTRONICA

TAREA GRUPAL DE METODOS NUMERICOS


EJERCICIO #1

>> %sea la función f=1/(1-x) hallar las series Taylor y Maclaurin

%serie de Taylor

syms x

f=1/(1-x)

f=

-1/(x - 1)

>> pretty(taylor(f,x,0.5,"order",12))

/ 1 \2 / 1 \3 / 1 \4 / 1 \5 / 1 \6 / 1 \7 / 1 \8

4 x + 8 | x - - | + 16 | x - - | + 32 | x - - | + 64 | x - - | + 128 | x - - | + 256 | x - - | + 512 | x - - |

\ 2/ \ 2/ \ 2/ \ 2/ \ 2/ \ 2/ \ 2/

/ 1 \9 / 1 \10 / 1 \11

+ 1024 | x - - | + 2048 | x - - | + 4096 | x - - |

\ 2/ \ 2/ \ 2/

>> %sea la función f=1/(1-x) hallar las series Taylor y Maclaurin

%serie de Taylor

syms x

f=1/(1-x);

pretty(taylor(f,x,0.5,"order",12))
ESCUELA PROFESIONAL DE ING.ELECTRONICA

/ 1 \2 / 1 \3 / 1 \4 / 1 \5 / 1 \6 / 1 \7 / 1 \8

4 x + 8 | x - - | + 16 | x - - | + 32 | x - - | + 64 | x - - | + 128 | x - - | + 256 | x - - | + 512 | x - - |

\ 2/ \ 2/ \ 2/ \ 2/ \ 2/ \ 2/ \ 2/

/ 1 \9 / 1 \10 / 1 \11

+ 1024 | x - - | + 2048 | x - - | + 4096 | x - - |

\ 2/ \ 2/ \ 2/

>> %serie Maclaurin

pretty(taylor(f,x,0,"order",12))

11 10 9 8 7 6 5 4 3 2

x +x +x +x +x +x +x +x +x +x +x+1

>> syms x

x=-0.9:0.1:0.9;

f=1./(1-x);

plot(x,f)
ESCUELA PROFESIONAL DE ING.ELECTRONICA

EJERCICIO#2

>> syms x

f=log(1+x);

pretty(taylor(f,x,0.5,"order",12))

/ 1 \2 / 1 \3 / 1 \4 / 1 \5 / 1 \6 / 1 \7

2 | x - - | 8 | x - - | 4 | x - - | 32 | x - - | 32 | x - - | 128 | x - - |

2x /3\ \ 2/ \ 2/ \ 2/ \ 2/ \ 2/ \ 2/

--- + log| - | - ------------ + ------------ - ------------ + ------------- - ------------- + --------------

3 \2/ 9 81 81 1215 2187 15309

/ 1 \8 / 1 \9 / 1 \10 / 1 \11

32 | x - - | 512 | x - - | 512 | x - - | 2048 | x - - |

\ 2/ \ 2/ \ 2/ \ 2/ 1

- ------------- + -------------- - --------------- + ---------------- - -

6561 177147 295245 1948617 3

>> %MACLAURIN

pretty(taylor(f,x,0,"order",12))

11 10 9 8 7 6 5 4 3 2

x x x x x x x x x x

--- - --- + -- - -- + -- - -- + -- - -- + -- - -- + x

11 10 9 8 7 6 5 4 3 2
ESCUELA PROFESIONAL DE ING.ELECTRONICA

>> syms x

x=-0.9:0.1:1

f=log(1+x);

plot(x,f)

x=

Columns 1 through 12

-0.9000 -0.8000 -0.7000 -0.6000 -0.5000 -0.4000 -0.3000 -0.2000 -0.1000 0 0.1000
0.2000

Columns 13 through 20

0.3000 0.4000 0.5000 0.6000 0.7000 0.8000 0.9000 1.0000

>> plot(x,f)

You might also like