Documentos de Académico
Documentos de Profesional
Documentos de Cultura
E-mail: mailto:jrbastidas@espe.edu.ec
Abstract
We present the development of a program in which the Solution of a Non-homogeneous differential equation is
known, by the method of indeterminate coefficients. Through software called Matlab, which allows you to enter a
source code to solve mathematical problems of all kinds, as well as graphic functions. By using this software you
can solve the characteristic equation to obtain the values of each Edo Constant. It is concluded that said program
through the application of the two presented cases provides the result that is the sum of the particular solution plus
the general solution of the Differential Equation.
Keywords: Non-homogenous Edo, Differential equations, Real constants, Characteristic equation, Factorization,
Roots, multiplicity.
Resumen
Palabras claves: Edo No Homogénea, Ecuaciones diferenciales, Constantes Reales, Ecuación característica,
Factorización, Raíces, multiplicidad.
2
1. OBJETIVO.
1.2.2 METODO DE COEFICIENTES
1.1 OBJETIVO GENERAL: INDETERMINADOS
1.2.2.1 CASOS
FUNDAMENTACIÓN TEÓRICA.
Para lograr una correcta realización del tema Para la solución particular existen dos casos:
propuesto se debe de conocer la teoría básica que
defina el método de coeficientes indeterminados. Caso 1
𝑘 = 𝑚𝑎𝑥{𝑚, 𝑛} 2. PROCEDIMIENTO:
1.2.3 EJERCICIOS
CODIGO FUENTE
gui_State = struct('gui_Name', mfilename, ... % Hint: edit controls usually have a white background on
'gui_Singleton', gui_Singleton, ... Windows.
'gui_OpeningFcn', @Deber4_OpeningFcn, ... % See ISPC and COMPUTER.
'gui_OutputFcn', @Deber4_OutputFcn, ... if ispc && isequal(get(hObject,'BackgroundColor'),
'gui_LayoutFcn', [] , ... get(0,'defaultUicontrolBackgroundColor'))
'gui_Callback', []); set(hObject,'BackgroundColor','white');
if nargin && ischar(varargin{1}) end
gui_State.gui_Callback = str2func(varargin{1}); % --- Executes during object creation, after setting all
end properties.
if nargout % --- Executes during object creation, after setting all
[varargout{1:nargout}] = gui_mainfcn(gui_State, properties.
varargin{:}); function cibox_CreateFcn(hObject, eventdata, handles)
else % hObject handle to cibox (see GCBO)
gui_mainfcn(gui_State, varargin{:}); % eventdata reserved - to be defined in a future version of
end MATLAB
% End initialization code - DO NOT EDIT % handles empty - handles not created until after all
% --- Executes just before Deber4 is made visible. CreateFcns called
function Deber4_OpeningFcn(hObject, eventdata, handles,
varargin) % Hint: edit controls usually have a white background on
% This function has no output args, see OutputFcn. Windows.
% hObject handle to figure % See ISPC and COMPUTER.
% eventdata reserved - to be defined in a future version of if ispc && isequal(get(hObject,'BackgroundColor'),
MATLAB get(0,'defaultUicontrolBackgroundColor'))
% handles structure with handles and user data (see set(hObject,'BackgroundColor','white');
GUIDATA) end
% varargin command line arguments to Deber4 (see % --- Executes on button press in checkbox1.
VARARGIN) function checkbox1_Callback(hObject, eventdata,
% Choose default command line output for Deber4 handles)
handles.output = hObject; if (get(handles.checkbox1,'Value') ==
% Update handles structure get(handles.checkbox1,'Max'))
% UIWAIT makes Deber4 wait for user response (see condn=get(handles.proceso,'value');
UIRESUME)% uiwait(handles.figure1); if(condn==1)
% --- Outputs from this function are returned to the set(handles.cibox,'Enable','on')
command line. set(handles.cibox2,'Enable','on')
function varargout = Deber4_OutputFcn(hObject, else
eventdata, handles) set(handles.cibox,'Enable','on')
% varargout cell array for returning output args (see set(handles.cibox2,'Enable','on')
VARARGOUT); set(handles.cibox3,'Enable','on')
% hObject handle to figure end
% eventdata reserved - to be defined in a future version of else
MATLAB set(handles.cibox,'Enable','off')
% handles structure with handles and user data (see set(handles.cibox2,'Enable','off')
GUIDATA) set(handles.cibox3,'Enable','off')
% Get default command line output from handles structure end
function eq_Callback(hObject, eventdata, handles) % hObject handle to checkbox1 (see GCBO)
% hObject handle to eq (see GCBO) % eventdata reserved - to be defined in a future version of
% eventdata reserved - to be defined in a future version of MATLAB
MATLAB % handles structure with handles and user data (see
% handles structure with handles and user data (see GUIDATA)
GUIDATA) % Hint: get(hObject,'Value') returns toggle state of
% Hints: get(hObject,'String') returns contents of eq as text checkbox1
% str2double(get(hObject,'String')) returns contents of % --- Executes on button press in pushbutton2.
eq as a double function pushbutton2_Callback(hObject, eventdata,
% --- Executes during object creation, after setting all handles)
properties. global dyexpression
function eq_CreateFcn(hObject, eventdata, handles) global ciexpression
% hObject handle to eq (see GCBO) global ci2expression
% eventdata reserved - to be defined in a future version of global ci3expression
MATLAB global eqsolvef
% handles empty - handles not created until after all dyexpression=get(handles.eq,'String');
CreateFcns called ciexpression=get(handles.cibox,'String');
ci2expression=get(handles.cibox2,'String');
5
% Hint: popupmenu controls usually have a white % eventdata reserved - to be defined in a future version of
background on Windows. MATLAB
% See ISPC and COMPUTER. % handles empty - handles not created until after all
if ispc && isequal(get(hObject,'BackgroundColor'), CreateFcns called
get(0,'defaultUicontrolBackgroundColor')) % Hint: place code in OpeningFcn to populate axes12
set(hObject,'BackgroundColor','white'); im1=imread('IngElectromecanica.jpg');
function cibox2_Callback(hObject, eventdata, handles) imshow(im1);
% hObject handle to cibox2 (see GCBO) % --- Executes during object creation, after setting all
% eventdata reserved - to be defined in a future version of properties.
MATLAB function axes13_CreateFcn(hObject, eventdata, handles)
% handles structure with handles and user data (see % hObject handle to axes13 (see GCBO)
GUIDATA) % eventdata reserved - to be defined in a future version of
% Hints: get(hObject,'String') returns contents of cibox2 MATLAB
as text % handles empty - handles not created until after all
% str2double(get(hObject,'String')) returns contents of CreateFcns called
cibox2 as a double
% --- Executes during object creation, after setting all % Hint: place code in OpeningFcn to populate axes13
properties. im1=imread('IngElectromecanica.jpg');
function cibox2_CreateFcn(hObject, eventdata, handles) imshow(im1);
% hObject handle to cibox2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB ANÁLISIS DE RESULTADOS
% handles empty - handles not created until after all
CreateFcns called
Mediante la ayuda del software y una vez
% Hint: edit controls usually have a white background on comprobado el correcto funcionamiento del código
Windows. fuente así mismo como realizadas muestras con
% See ISPC and COMPUTER. diferentes Soluciones Generales, se obtuvo
if ispc && isequal(get(hObject,'BackgroundColor'), satisfactoriamente los resultados esperados, los
get(0,'defaultUicontrolBackgroundColor')) cuales son la Ecuaciones Diferenciales.
set(hObject,'BackgroundColor','white');
end
function tam_Callback(hObject, eventdata, handles)
% hObject handle to tam (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 tam as
text
% str2double(get(hObject,'String')) returns contents of
tam as a double
% --- Executes during object creation, after setting all
properties.
function tam_CreateFcn(hObject, eventdata, handles)
Ilustración 2.- Código en Matlab
% hObject handle to tam (see GCBO) Autor: Bryan Meza
% eventdata reserved - to be defined in a future version of
MATLAB
% handles empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes during object creation, after setting all
properties.
function axes12_CreateFcn(hObject, eventdata, handles) Ilustración 3.- Interfaz
% hObject handle to axes12 (see GCBO) Autor: Bryan Meza
7
5. REFERENCIAS
Sebastián Aleaga
Eduardo Delgado