Академический Документы
Профессиональный Документы
Культура Документы
CURSO:
METODOS COMPUTACIONALES
GRUPO:
3
ALUMNO:
HUAHUACHAMPI CALLATA ALDAIR JOR
PROFESOR:
MONTESINOS MURILLO, ANGEL FELIPE
TRABAJO:
METODO DE SIMPSON 1/3
AREQUIPA PERU
2017
MTODO DE [NOMBRE DEL MTODO] ........................................................... 4
1. Introduccin.................................................................................................................4
2. Conceptos ....................................................................................................................5
a) REGLA DE SIMPSON 1/3 SIMPLE .........................................Error! Bookmark not defined.
b) REGLA DE SIMPSON 1/3 COMPUESTA ................................Error! Bookmark not defined.
3. Formulas ......................................................................................................................6
5. Algoritmo.....................................................................................................................6
a) Diagrama de flujo .............................................................................................................. 6
b) Pseudocdigo .................................................................................................................... 7
6. Cdigo .........................................................................................................................7
a) Diseo de la clase .............................................................................................................. 7
b) Diseo de la interfaz.......................................................................................................... 9
8. CONCLUSIONES .......................................................................................................... 13
9. RESUMEN .................................................................................................................. 13
1. INTRODUCCIN
La regla Simpson o formula fue utilizada por primera vez por Evangelista
Torricelli, pero debe su nombre al matemtico ingles Thomas Simpson, se puede
obtener una estimacin ms exacta de la integral.
REGLA
FORMULAS DE
TRAPEZOIDAL
INTEGRACION SIMPSON 1/3
DE NEWTON-
COTES
REGLA DE
SIMPSON
METODOS DE
INTEGRACION
NUMERICA SIMPSON 3/8
FORMULAS DE METODO DE
V
INTEGRACION EXTRAPOLACION
DE ROMBERG DE RICHADSON
2. CONCEPTOS
Frmula N 2
() + 4( ) + ()
() ( ) [ ] Formula regla
6
Simpson 1/3
simple
Frmula N 3
(0 ) + 4 1 2
= ( ) + 2 = ( ) + ( )
() ( ) [ ] Formula regla
3
Simpson 1/3
compuesta
4. ERROR DE APROXIMACIN
5. ALGORITMO
a) DIAGRAMA DE FLUJO
b) PSEUDOCDIGO
6. CDIGO
a) DISEO DE LA CLASE
private double a;
private double b;
private double n;
private doubl h;
this.a = a;
this.b = b;
this.n = n;
}
public double getA() {
return a;
this.a = a;
return b;
this.b = b;
return n;
this.n = n;
h=(b-a)/n;
calcularH();
System.out.println("h= "+h);
double sumapar=0;
double sumaimpar=0;
double xi=a+h;
for(int i=1;i<n;i++) {
if(i%2==0){
sumapar+=fx(xi);
else{
sumaimpar+=fx(xi); ;
xi+=h;
return (h/3)*(fx(a)+2*sumapar+4*sumaimpar+fx(b));
b) DISEO DE LA INTERFAZ
7. EJEMPLOS DE APLICACIN
a) EJEMPLO N 1
2
- Calcular el rea de () = desde x = -1 hasta x =1:
1
2 1 (1) 11
[ (1) + 4 ( ) + (1)]
1 6 2
1
[0.3678 + 4.1 + 0,3678] 1.5786
3
1 (1)
= 4 => = = 0,5
4
I X F(x)
0 -1 0,3678
1 -0,5 0,7788
2 0 1
3 0,5 0,7788
4 1 0,3678
1
2 0,5
[(1) + (1) + 4((0,5) + (0,5)) + 2(0)]
1 3
0,5
[0,3678 + 0,3678 + 4(0,7788 + 0,7788) + 2,1] 1,4943
3
1
2
1,4936
1
b) EJEMPLO N 2
1
Utilizar la regla de Simpson para aproximar la integral: 0 2
Tabla N 2
syms x
f=exp(x^2);
integral=int(f)
integral =
-1/2*i*pi^(1/2)*erf(i*x)
c) EJEMPLO N 3:
4
Usar la regla de Simpson para aproximar la integral: 2
2 4
= () = = = 3.6945, 2 = 8 = () = = 13.6495
2 4
21 = ( + (2 1)) = ( )
2 = ( + 2)
El valor final de la integral ser:
0.25
() = [3.6945 13.6495 + 4(29.1795) + 2(34.6793)] = 14.6768
3
d) EJEMPLO N 4:
Calcular la siguiente Integral:
3
log()
1 3
9. RESUMEN
El trabajo presenta el diseo de un software, la cual servir como
herramienta para resolver problemas de integracin de funciones y solucin de
ecuaciones diferenciales ordinarias aplicando mtodos numricos (REGLA DE
SIMPSON).