Professional Documents
Culture Documents
Alexander Tixi Metodos Numericos Taller 2 Mathlab
Alexander Tixi Metodos Numericos Taller 2 Mathlab
METODOS NUMERICOS
TALLER 2 MATHLAB
• GRAFICA
• CODIGO
ALEXANDER TIXI
METODOS NUMERICOS
• BISECCION
• CODIGO
• f= inline('(2.7183.^(-0.5*x) - (x.^2))./(sin(0.3.*x)+2)');
• a=0.5;
• b=1;
•
• NEWTON RAPHSON
• CODIGO
• f=(2.7183.^(-0.5*x) - (x.^2))./(sin(0.3.*x)+2); %Enter the
Function here
• g=diff(f); %The Derivative of the Function
• n=input('Enter the number of decimal places:');
• epsilon = 1*10^-(n)
•
• SECANTE
CODIGO
f= inline('(2.7183.^(-0.5*x) - (x.^2))./(sin(0.3.*x)+2)');
x1=0.5;
x2=1;
for i=1:100
x1=vpa(subs(f,x,x0)); %Calculating the value of function at x0
ALEXANDER TIXI
METODOS NUMERICOS