%----------------------------------------------------------------------------
% function [reseni,pocet_kroku,info] = ...
% metoda_puleni_intervalu_G(funkce,a,b,epsilon);
%
% resime rovnici f(x)=0 na intervalu
% zastavovaci podminka b-a < epsilon
%----------------------------------------------------------------------------
metoda_puleni_intervalu_G('fce01',1,4,0.01)
metoda_puleni_intervalu_G('fce02',-0.1,1,0.01)
metoda_puleni_intervalu_G('fce03',0.1,1,0.01)
%----------------------------------------------------------------------------
% function [reseni,pocet_kroku,konverguje] = ...
% metoda_proste_iterace_G(funkce_phi,a,b,x0,epsilon,max_pocet_kroku);
%
% resime rovnici f(x)=0 na intervalu
% pouzijeme prepis x=funkce_phi(x)
% pocatecni aproximace x0
% zastavovaci podminka |x_(k+1) - x_(k)| < epsilon
% maximalni pocet kroku max_pocet_kroku
%----------------------------------------------------------------------------
metoda_proste_iterace_G('fce04',1,4,2.5,0.01,3)
metoda_proste_iterace_G('fce05',1,4,2.5,0.01,4)
metoda_proste_iterace_G('fce06',1,4,2.5,0.01,20)
metoda_proste_iterace_G('fce07',1,4,2.5,0.00001,10)
%----------------------------------------------------------------------------
% function [reseni,pocet_kroku,info] = ...
% metoda_regula_falsi_G(funkce,a,b,epsilon);
%
% resime rovnici f(x)=0 na intervalu
% zastavovaci podminka |f(s)| < epsilon
%----------------------------------------------------------------------------
metoda_regula_falsi_G('fce02',-0.1,1,0.01)
metoda_regula_falsi_G('fce03',-1,1,0.01)