Documentos de Académico
Documentos de Profesional
Documentos de Cultura
PRACTICA 9 Metodos
PRACTICA 9 Metodos
METODO NUMERICO
ingresa la funcion=(x^5)+x+2
f1 =
(x^5)+x+2
a=
-1
b=
n=
H=
0.5000
h=
0.2500
X=
0 0 0
X=
-1 0 0
X=
-1.0000 -0.5000 0
X=
-1.0000 -0.5000 0
f=
Inline function:
f(x) = (x^5)+x+2
d4x =
120*x
I=
ET =
C=
120
ET =
0.0013
C=
60
ET =
0.0020
el resultado de la I
1.332
el error es
0.001953
2.-
>> simpsontruncado
ingresa la funcion=(exp(x/2))/x
f1 =
(exp(x/2))/x
a=
b=
n=
2
H=
h=
0.5000
X=
0 0 0
X=
1 0 0
X=
1 2 0
X=
1 2 3
f=
Inline function:
f(x) = (exp(x/2))/x
d4x =
I=
ET =
C=
24.0095
ET =
0.0083
C=
0.7645
ET =
0.0086
el resultado de la I
2.848
el error es
0.008602
3.-
>> simpsontruncado
ingresa la funcion=sin(2*x)
f1 =
sin(2*x)
a=
b=
1.5708
n=
H=
0.7854
h=
0.3927
X=
0 0 0
X=
0 0 0
X=
0 0.7854 0
X=
0 0.7854 1.5708
f=
Inline function:
f(x) = sin(2*x)
d4x =
16*sin(2*x)
I=
ET =
C=
16
ET =
0.0017
C=
16
ET =
0.0033
el resultado de la I
1.002
el error es
0.003321
4.-
>> simpsontruncado
ingresa la funcion=log(x/3)
f1 =
log(x/3)
a=
b=
n=
2
H=
0.5000
h=
0.2500
X=
0 0 0
X=
2 0 0
X=
2.0000 2.5000 0
X=
f=
Inline function:
f(x) = log(x/3)
d4x =
-6/x^4
I=
ET =
C=
0.3750
ET =
4.0690e-06
C=
0.1536
ET =
5.7357e-06
el resultado de la I
-0.1891
el error es
5.736e-6
5.-
>> simpsontruncado
ingresa la funcion=(x-2)^6
f1 =
(x-2)^6
a=
b=
n=
H=
h=
0.5000
X=
0 0 0
X=
1 0 0
X=
1 2 0
X=
1 2 3
f=
Inline function:
f(x) = (x-2)^6
d4x =
360*(x - 2)^2
I=
ET =
C=
360
ET =
0.1250
C=
360
ET =
0.2500
el resultado de la I
0.3542
el error es
0.25
METODO DE EULER:
1.-
>> euler
ingresa funcion=y/x
g=
y/x
X1 =
b=
n=
h=
0.5000
X=
3 0 0
X=
3.0000 3.5000 0
X=
Y=
4 0 0
mostrar x
mostrar Y
2.-
>> euler
>> euler
ingresa funcion=x-6*y
g=
x-6*y
Y1 =
b=
n=
h=
0.5000
X=
0 0 0 0 0
X=
0 0.5000 0 0 0
X=
0 0.5000 1.0000 0 0
X=
X=
Y=
4 0 0 0 0
mostrar x
mostrar Y
3.-
>> euler
ingresa funcion=(-3*x)/2*y
g=
(-3*x)/2*y
X1 =
Y1 =
-1
b=
n=
h=
0.5000
X=
1 0 0 0 0
X=
1.0000 1.5000 0 0 0
X=
X=
X=
Y=
-1 0 0 0 0
mostrar x
4.-
>> euler
ingresa funcion=(-(2*x^2*y)+4)/((2*x*y^2)-3)
g=
(-(2*x^2*y)+4)/((2*x*y^2)-3)
X1 =
Y1 =
b=
n=
h=
0.2500
X=
1 0 0 0 0 0 0 0 0
X=
1.0000 1.2500 0 0 0 0 0 0 0
X=
X=
X=
X=
X=
X=
Y=
3 0 0 0 0 0 0 0 0
mostrar x
mostrar Y
5.-
>> euler
ingresa funcion=((-x^2*y)+y)/(x*y^2)-(cos(x)*sin(x))
g=
((-x^2*y)+y)/(x*y^2)-(cos(x)*sin(x))
X1 =
Y1 =
b=
n=
4
h=
0.5000
X=
2 0 0 0 0
X=
2.0000 2.5000 0 0 0
X=
X=
X=
Y=
1 0 0 0 0
mostrar x
mostrar Y