Академический Документы
Профессиональный Документы
Культура Документы
.
Abstract
This
paper
presents one of the different
methods of solving ordinary
differential equations of the
first degree, as
is
the
corrector
method,
which
goes
together
with
the
predictive method, works in
a range from performing
several iterations system. It
contains
theoretical
information and performing
the mathematical software
Matlab.
I.
DESARROLLO DE CONTENIDOS
II.
A. Definicin.Mtodos multipasos
Un mtodo multipasos de p pasos para
resolver el problema de valor inicial
INTRODUCCIN
dy
=f ( t , y ) a<t< b
dt
y ( a )=
(1)
i=0
i=1
para n = p-1, p, , N-1, donde h = (ba)/N, a0, a1, , ap, b-1, , bp son
constantes y se especifican los valores
p
a i=1
i=0
( 21)
( j1)b
i=0
i=1
i ai + j
i=1
i=0
iniciales w0 = 0, w1 = 1, w2 = 2, ,
wp-1 = p-1. Se toma generalmente de la
condicin inicial el valor w 0 = (el dato
de la condicin inicial) y los dems
valores necesarios para iniciar el mtodo
se obtienen con un mtodo de RungeKutta u otro mtodo de un paso.
x n+1=x n +h bi f ( x n1 , t n1 )
i=1
(2
2)
( j1)b
k1
i=0
(2
3)
1 11 1
012 (k 1)
( k1)
( k1)
0 1 4 ...
(
2
4
)
( j1)b
k2
i=0
1 11 1 1
1 012(k2)
( k2)
( k2)
1 0 1 4 ...
(
2
6
)
w i+1=wi +
h
55 f ( t i , wi ) 59 f ( t i 1(2, wi1 ) +37 f ( t i2 , wi2 )9 f ( t i3 , w i3 ) ]
24 [
7)
u
4
( i) h
251 (4 )
i +1=
y
720
(2
8)
u
(i) h4
19 (4)
i +1=
y
720
(3
0)
w i+1=wi +
Mtodos Implcitos:
Los mtodos implcitos son similares a los
mtodos explcitos, salvo que el
polinomio interpolador pasa por el punto
h
y n+1( t).
9 f ( t i +1 , w i+1 )19 f ( t(2i , wi ) 5 f ( t i1 ,(x
w n+1
wi2 ) ]
i1),f
i2 , Tenemos
24 [
9)
x n+1
mtodos
para
los
m :
diferentes valores de
y n+1= y n+ h f n1
m+1
pm+1 (x)=
j =0
Para
con
m=0
obtenemos
h
y n+1= y n+ (f n+1 + f n)
2
xx n+1
s=
h
Para
resulta
x n+ 1
m+ 1
pm +1( x)dx=h c j f n +1
j
m=1
y n+1= y n+
h
(5 f n +1+ 8 f n f n1 )
12
j=0
xn
finalmente, para
donde
0
c j =(1 )
implcitos
(sj ) ds
y n+1= y n+
h
( 9 f n +1+19 f n5 f n1+ f n2 )
24
Los
algoritmos
necesitan
una
aproximacin
y n+1= y n+ h [ 0 f n+1 + 1 f n + + m +1 f nm ]
implcitos
primera
y n+1 . Lo usual
m=2
llamamos
de
y n+1 ,
que
y(0)
n+1 , y el corrector
donde los
dependen de
Corrector:
)
(i)
(i)
m+1 (i)
y(i+1
f nm ] .
n+1 = y n +h [ c 0 f n+1 +c 1 f n +, , ,+bm +1
donde
son
los
k =m
frecuentemente se emplean
y
k =0
m=0 .
)
y(i+1
n+1 = y n +h f n
h (i)
(i+1 )
y n+1 = y n + f n+1 +f n .
2
conocido como mtodo de Euler
modificado. Cuando
)
(i )
y(i+1
n+1 y n+ 1=
pero
distintos. El mtodo ms
sencillo es
m=k =2 ,
y(0)
n+1= y n+
mientras
m=2
)
y(i+1
n+1 = y n3 +
h
[23 f n16 f n1 +5 f n2 ]+O(h 3)
12
)
y(i+1
n+1 = y n +
h
[9 f (ni)+119 f n 5 f n1 ]+O(h 4 )
24
que
con
k =3
(i+1 )
y n+1 = y n1 +
h
[55 f n59 f +37 f n29 f n3 ]+O(h 4 )
24
h
[9 f (ni)+1+ 19 f n5 f n1+ f n2 ]+O(h4 )
24
Los
mtodos
de
predictorcorrector tienen como principal
ventaja
sobre
los
mtodos
explcitos el que permiten estimar
h (i )
( f 4 f n + f n1 )
3 n+ 1
mtodo
de
Adams,
frecuentemente empleado:
)
y(i+1
n+1 = y n +
9h
( 2 f k2f k1+2 f k )
24
B. MANUAL DE USUARIO
se obtiene el denominado
y(0)
n+1= y n+
9 h (i)
f n+1 f (i1)
(
n +1 )
24
Por tabla
function varargout =
Metodo_CorrectorTabla(varargin)
% METODO_CORRECTORTABLA MATLAB
code for
Metodo_CorrectorTabla.fig
%
METODO_CORRECTORTABLA, by
itself, creates a new
METODO_CORRECTORTABLA or raises
the existing
%
singleton*.
%
%
H = METODO_CORRECTORTABLA
returns the handle to a new
METODO_CORRECTORTABLA or the
handle to
%
the existing singleton*.
%
%
METODO_CORRECTORTABLA('CALLBACK',
hObject,eventData,handles,...)
calls the local
%
function named CALLBACK in
METODO_CORRECTORTABLA.M with the
given input arguments.
%
%
METODO_CORRECTORTABLA('Property',
'Value',...) creates a new
METODO_CORRECTORTABLA or raises
the
%
existing singleton*.
Starting from the left, property
value pairs are
%
applied to the GUI before
Metodo_CorrectorTabla_OpeningFcn
gets called. An
%
unrecognized property name
or invalid value makes property
application
%
stop. All inputs are
passed to
Metodo_CorrectorTabla_OpeningFcn
via varargin.
%
%
*See GUI Options on
GUIDE's Tools menu. Choose "GUI
allows only one
%
instance to run
(singleton)".
%
% See also: GUIDE, GUIDATA,
GUIHANDLES
% Edit the above text to modify
the response to help
Metodo_CorrectorTabla
% Last Modified by GUIDE v2.5 26Jul-2015 11:47:04
% Begin initialization code - DO
NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',
mfilename, ...
'gui_Singleton',
...
gui_Singleton,
'gui_OpeningFcn',
@Metodo_CorrectorTabla_OpeningFcn
, ...
'gui_OutputFcn',
@Metodo_CorrectorTabla_OutputFcn,
...
'gui_LayoutFcn',
[] , ...
'gui_Callback',
[]);
if nargin && ischar(varargin{1})
gui_State.gui_Callback =
str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] =
gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State,
varargin{:});
end
% End initialization code - DO
NOT EDIT
function
Corrector_OpeningFcn(hObject,
eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
% --- Executes just before
Metodo_CorrectorTabla is made
visible.
function
Metodo_CorrectorTabla_OpeningFcn(
hObject, eventdata, handles,
varargin)
% This function has no output
args, see OutputFcn.
% hObject
handle to figure
% eventdata reserved - to be
defined in a future version of
MATLAB
% handles
structure with
handles and user data (see
GUIDATA)
% varargin
command line
arguments to
Metodo_CorrectorTabla (see
VARARGIN)
% Choose default command line
output for Metodo_CorrectorTabla
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes
Metodo_CorrectorTabla wait for
user response (see UIRESUME)
% uiwait(handles.figure1);
function edo_Callback(hObject,
eventdata, handles)
function edo_CreateFcn(hObject,
eventdata, handles)
if ispc &&
isequal(get(hObject,'BackgroundCo
lor'),
get(0,'defaultUicontrolBackground
Color'))
set(hObject,'BackgroundColor','wh
ite');
end
function Ttext_Callback(hObject,
eventdata, handles)
% --- Executes during object
creation, after setting all
properties.
function Ttext_CreateFcn(hObject,
eventdata, handles)
if ispc &&
isequal(get(hObject,'BackgroundCo
lor'),
get(0,'defaultUicontrolBackground
Color'))
set(hObject,'BackgroundColor','wh
ite');
end
function Ytext_Callback(hObject,
eventdata, handles)
% hObject
handle to Ytext (see
GCBO)
% eventdata reserved - to be
defined in a future version of
MATLAB
% handles
structure with
handles and user data (see
GUIDATA)
% Hints: get(hObject,'String')
returns contents of Ytext as text
%
str2double(get(hObject,'String'))
function yatext_Callback(hObject,
eventdata, handles)
function rtext_Callback(hObject,
eventdata, handles)
% --- Executes during object
creation, after setting all
properties.
function rtext_CreateFcn(hObject,
eventdata, handles)
if ispc &&
isequal(get(hObject,'BackgroundCo
lor'),
get(0,'defaultUicontrolBackground
Color'))
set(hObject,'BackgroundColor','wh
ite');
end
function error_Callback(hObject,
eventdata, handles)
% --- Executes during object
creation, after setting all
properties.
function error_CreateFcn(hObject,
eventdata, handles)
if ispc &&
isequal(get(hObject,'BackgroundCo
lor'),
get(0,'defaultUicontrolBackground
Color'))
set(hObject,'BackgroundColor','wh
ite');
end
y'=
t2
2
Figa. Respuesta
En la Tabla 1 se presentan los resultados
obtenidos al aplicar el mtodo corrector de
Adams-Moulton
como se observa el error
producido en el mtodo se va reduciendo a
medida que se realizan ms iteraciones, y el
tamao de paso h se reduce tambin, estos
resultados fueron obtenidos para la aproximacin
de la funcin y(t) en t=3 con 24 iteraciones.
f 1=
01
=0.5
2
f 2=
f 3=
f 4=
0.25(1+0.25 (0.4121094 ) )
=0.3234863
2
Pk+1 = y k +
h
(9 f k3 +37 f k259 f k 1 +55 f k )
24
y k+1 = y k +
h
(f 5 f k1 +19 f k + 9 f k +1)
24 k 2
III.
CONCLUSIONES
La eficiencia de los mtodos AdamsMilne se considera al doble de los
metodos Runge.Kutta, debido a que solo
se requieren dos evaluaciones de la
funcin por paso.
El mtodo de Milne obtienen la primera
aproximacin de yi+1 extrapolando
valores para la derivada. Este mtodo
difiere de las frmulas de Adams en que
la integracin se hace en ms de un
intervalo.
BIBLIOGRAFIA
1. Burden, R.; Faires, D. Anlisis Numrico. ED.
Thomson, 6a. ed., 1998.