Está en la página 1de 22

a)

Function y= myfun2(x)
y = x^3 + 14*x - 6 -9*x^2 + 3*x - 1;
end
b) [x,y]=metgraf(@myfun2,1,3)

c)

TABLA BISECC

d)

TABLA FALSAPOS

e)

TABLA FALSAPOSMOD}

f)

[x,xold, n]=bisecc(@myfun2,1,3,1.0e-08)

x = 1.846532687544823

xold = 1.846532687544823

n = 27

g)
[x,xold,n]=falsapos(@myfun2,1,3,1.0e-08)

x = 1.846532688840367

xold = 1.846532688840367

n = 17

h)

[x,xold,n]=falsaposmod(@myfun2,1,3,1.0e-08)

x = 1.846532694854190

xold = 1.846532694854190

n = 18

a)

function y= myfun3(x)

y = x^5-2*x^3-6*x^2+4*x+4;

end

b) [x,y]=metgraf(@myfun3,-2,1)

c)
d)

e)
f) [x,xold, n]=bisecc(@myfun3,-1,0,1.0e-08)

x = -0.5785462819039822

xold = -0.5785462819039822

n = 28

g)

[x,xold,n]=falsapos(@myfun3,-1,0,1.0e-08)

x = -0.5785462807354406

xold = -0.5785462807354406
n = 13

h)

[x,xold,n]=falsaposmod(@myfun3,-1,0,1.0e-08)

Solucion exacta

x = -0.5785462812777599

xold = -0.5795927642662925

n = 17

a)

function y= myfun8(x)

y = 6*x^4+11*x^3 + 2*x^2-6*x-63 ;

end %function

b) [x,y]=metgraf(@myfun8,0,3)

c)

d)

e)

f) [x,xold, n]=bisecc(@myfun8,1,3,1.0e-08)

Solucion exacta
x = 1.5

xold = 2

n=2

g)

[x,xold,n]=falsapos(@myfun8,1,3,1.0e-08)

x = 1.499999976356321

xold = 1.499999976356321

n = 44

h)

[x,xold,n]=falsaposmod(@myfun8,1,3,1.0e-08)

Solucion exacta

x = 1.5

xold = 1.500682065259472

n = 21

a)

function y= myfun10(x)

y =ln(x^4 + 2*x^3 + 2)-x*e^x;

end

b)

[x,y]=metgraf(@myfun10,0,2)
c)

d)

e)

f)

[x,xold, n]=bisecc(@myfun10,0,2,1.0e-08)

x = 0.5086626373231411

xold = 0.5086626373231411

n = 29

g)

[x,xold,n]=falsapos(@myfun10,0,2,1.0e-08)

x = 0.5086626189216841

xold = 0.5086626189216841

n = 71

h) [x,xold,n]=falsaposmod(@myfun10,0,2,1.0e-08)

Solucion exacta

x = 0.5086626354237871

xold = 0.5102975077013537
n = 19

a)

function y= myfun11(x)

y =(cos(2*x + 3) + 2)^2 - 4*x - 2;

end

b) [x,y]=metgraf(@myfun11,1,2)

c)

d)

e)

f)

[x,xold, n]=bisecc(@myfun11,1,2,1.0e-08)

Āfl = -0.7848870226853215

fr = -2.416022373522864

No Cumple los requisitos

error: element number 1 undefined in return list

g)

[x,xold,n]=falsapos(@myfun11,1,2,1.0e-08)
No Cumple los requisitos

error: element number 1 undefined in return list

h)

[x,xold,n]=falsaposmod(@myfun11,1,2,1.0e-08)

fl = -0.7848870226853215

fr = -2.416022373522864

No Cumple los requisitos

error: element number 1 undefined in return list

a)

function y= myfun16(x)

y = ((x-2)^3) + ((x+1)^2)-x-3 ;

end %function

b)

[x,y]=metgraf(@myfun16,1,2)

c)
d)
e)
f)

[x,xold, n]=bisecc(@myfun16,1,2,1.0e-08)

x = 1.176092825829983

xold = 1.176092825829983

n = 27

g)

[x,xold,n]=falsapos(@myfun16,1,2,1.0e-08)

x = 1.176092827174046

xold = 1.176092827174046

n=7

h)

[x,xold,n]=falsaposmod(@myfun16,1,2,1.0e-08)

x = 1.176092826752025

xold = 1.176092826752025

n = 16

a)

function y= myfun5(x)

y = x^6 − 16*x^3 + 60 ;

end %function

b)

[x,y]=metgraf(@myfun5,1,2)
c)
d)
e)

f)

[x,xold, n]=bisecc(@myfun5,1,2,1.0e-08)

x = 1.817120596766472

xold = 1.817120596766472

n = 26

g)

[x,xold,n]=falsapos(@myfun5,1,2,1.0e-08)

x = 1.817120596378823

xold = 1.817120596378823

n = 15

h)
[x,xold,n]=falsaposmod(@myfun5,1,2,1.0e-08)

Solucion exacta

x = 1.817120592832139

xold = 1.816540954772796

n = 21

a)

function y= myfun13(x)

y =x^2*log(x + 3)-x - 2;

end

b) [x,y]=metgraf(@myfun13,1,2)
c)
d)
e)

f)

[x,xold, n]=bisecc(@myfun13,1,2,1.0e-08)

x = 1.528440847992897

xold = 1.528440847992897

n = 26

g)

[x,xold,n]=falsapos(@myfun13,1,2,1.0e-08)

x = 1.528440856248152

xold = 1.528440856248152

n = 12

h)

[x,xold,n]=falsaposmod(@myfun13,1,2,1.0e-08)

x = 1.528440859160603

xold = 1.528440859160603
n = 18

También podría gustarte