Evaluacion Continua 3 Biseccion

Descargar como pdf o txt
Descargar como pdf o txt
Está en la página 1de 3

UNIVERSIDAD NACIONAL MAYOR DE SAN MARCOS

(Universidad del Perú, DECANA DE AMERICA)

FACULTAD DE INGENIERIA ELECTRICA Y ELECTRONICA

ALUMNO: MALASQUEZ VILCHEZ YAIR ROBERTO 17190119

PROFESOR: MARIA NATIVIDAD ZEGARRA GARAY

CURSO: METODOS NUMERICOS

TEMA: MÉTODO DE LA BISECCIÓN


log⁡(𝑑/𝑒) log⁡(1600)
𝑖> = = 10,644 → 11
log⁡(2) log⁡(2)

# Iteracion a b c f(a) f(b) f(c)


Inicio -8 8 0 n p n
1 0 8 4 n p n
2 4 8 6 n p n
3 6 8 7 n p n
4 7 8 7.5 n p p
5 7 7.5 7.25 n p n
6 7.25 7.5 7.375 n p p
7 7.25 7.375 7.3125 n p n
8 7.3175 7.375 7.34625 n p p
9 7.3175 7.34625 7.331875 n p n
10 7.331875 7.34625 7.3390625 n p p
11 7.331875 7.3390625 7.33546875 n p

CODIGO EN OCTAVE

clear all;clc;
format long;
y = [1 -1 -1993/34 13189/225 58564/225 -1822/7];
x = -8:0.1:8;
graf = polyval(y,x);
plot(x,graf,'g','LineWidth',2 )
a = -8;
b = 8;
for i=1:1:11
c =(a+b)/2;
if polyval(y,c)>0
b = c;
end
if polyval(y,c)<0
a = c;
end
end
disp('La raiz es: ')
disp(c)

GRAFICA

También podría gustarte