You are on page 1of 4

UNIVERSIDAD NACIONAL DEL CENTRO DEL PERÚ

FACULTAD DE INGENIERÍA QUÍMICA

ESCUELA ACADÉMICO PROFESIONAL DE INGENIERÍA QUÍMICA

ALUMNO: HURTADO TOCAS ANYELO YONEL

CURSO: METODOS NUMERICOS

DOCENTE: Ms. EUFRACIO ARIAS Wilder

1. Dada la siguiente integral:

Hallar su aproximación:
SOLUCION:
A la aproximación que se quiere llegar:

clear,clc
disp(' METODO TRAPEZOIDAL' )
disp('APROXIMACION DE LA SIGUIENTE INTEGRAL')
n=1;
b=3;
a=2;
h=(b-a)/n;
x0=2;fx0=0.666;
x1=3;fx1=0.375;
disp('La integral aproximada cuando n=1 será:')
I=h/2*[fx0+fx1]

Corriendo el programa:

METODO TRAPEZOIDAL
APROXIMACION DE LA SIGUIENTE INTEGRAL
La integral aproximada cuando n=1 será:
I = 0.5205

clear,clc
disp(' METODO DE SIMPSON')
disp('APROXIMACION DE LA SIGUIENTE INTEGRAL')
disp('"n=numero de puntos"')
n=2;
b=3;
a=2;
h=(b-a)/n;
x0=2;fx0=0.66666;
x1=2.5;fx1=0.47619;
x2=3;fx2=0.375;
disp('Cuando n=2 la integral aproximada es: ')
I=h/3*[fx0+4*fx1+fx2]
n=3;
b=3;
a=2;
h=(b-a)/n;
x0=2;fx0=0.66666;
x1=2.3333;fx1=0.525001;
x2=2.6666;fx2=0.436606;
x3=3;fx3=0.375;
disp('Cuando n=2 la integral aproximada es: ')
I=(3*h/8)*[fx0+3*fx1+3*fx2+fx3]
n=4;
b=3;
a=2;
h=(b-a)/n;
x0=2;fx0=0.66666;
x1=2.25;fx1=0.55538;
x2=2.50;fx2=0.47619;
x3=2.75;fx3=0.41904;
x4=3;fx4=0.375;
disp('Cuando n=2 la integral aproximada es: ')
I=(2*h/45)*[7*fx0+32*fx1+12*fx2+32*fx3+7*fx4]
Corriendo el programa:

METODO DE SIMPSON
APROXIMACION DE LA SIGUIENTE INTEGRAL

"n=número de puntos"

Cuando n=2 la integral aproximada es:


I =

0.4911

Cuando n=2 la integral aproximada es:

I =

0.4908

Cuando n=2 la integral aproximada es:

I =

0.4910

clear,clc
disp(' METODO TRAPEZOIDAL COMPUESTO' )
disp('APROXIMACION DE LA SIGUIENTE INTEGRAL')
disp('" n es el numero de puntos "')
n=4;
b=3;
a=2;
h=(b-a)/n;
x0=2;fx0=0.66666;
x1=2.25;fx1=0.55538;
x2=2.50;fx2=0.47619;
x3=2.75;fx3=0.41904;
x4=3;fx4=0.375;
disp('Cuando n=4 la integral aproximada será: ')
I=(h/2)*[fx0+2*fx1+2*fx2+2*fx3+fx4]

Corriendo el programa:

METODO TRAPEZOIDAL COMPUESTO


APROXIMACION DE LA SIGUIENTE INTEGRAL
"n es el número de puntos"
Cuando n=4 la integral aproximada será:

I =
0.4929
clear,clc
disp(' METODO SIMPSON COMPUESTO' )
disp('APROXIMACION DE LA SIGUIENTE INTEGRAL')
n=4;
b=3;
a=2;
h=(b-a)/n;
x0=2;fx0=0.66666;
x1=2.25;fx1=0.55538;
x2=2.50;fx2=0.47619;
x3=2.75;fx3=0.41904;
x4=3;fx4=0.375;
disp('cuando n=4 la integral aproximada será: ')
I=(h/3)*[fx0+4*fx1+2*fx2+4*fx3+fx4]

Corriendo el programa:

METODO SIMPSON COMPUESTO


APROXIMACION DE LA SIGUIENTE INTEGRAL
Cuando n=4 la integral aproximada será:

I =

0.4910

You might also like