Professional Documents
Culture Documents
Problemas
Problemas
25-1))
+0.25*(1.99-1)/(1+x*(1.99-1))+0.20*(0.75-1)/(1+x*(0.75-1))+0.35*(0.29-1)/
(1+x*(0.29-1))')
a=
Inline function:
a(x) = 0.05*(16.25-1)/(1+x*(16.25-1))+0.15*(5.25-1)/(1+x*(5.25-1))
+0.25*(1.99-1)/(1+x*(1.99-1))+0.20*(0.75-1)/(1+x*(0.75-1))+0.35*(0.29-1)/
(1+x*(0.29-1))
>> y=fzero(a,0.51,optimset('disp','iter','tolx',1e-6))
f(a)
0.51
0.00572934
0.495575
0.0199019
f(b)
0.51
Procedure
f(x)
Procedure
0.524425 -0.00835642
initial
0.515894 -3.46057e-05
interpolation
0.515858 -8.83932e-09
interpolation
0.515858 -8.83932e-09
interpolation
y=
0.5159
>> x1=0.05/(1+y*(16.25-1))
x1 =
0.0056
>> x2=0.15/(1+y*(5.25-1))
x2 =
0.0470
>> x3=0.25/(1+y*(1.99-1))
x3 =
0.1655
>> x4=0.20/(1+y*(0.75-1))
x4 =
0.2296
>> x5=0.35/(1+y*(0.29-1))
x5 =
0.5523
>
Problema 2
a=inline('100*0.4/(35*xw)-((100*0.6)/(35*(1-xw)))^2.05')
a=
Inline function:
a(xw) = 100*0.4/(35*xw)-((100*0.6)/(35*(1-xw)))^2.05
>> xw=fzero(a,0.2,optimset('disp','iter','tolx',1e-4))
0.2
0.194343
0.192
0.188686
0.184
f(a)
0.944091
11
0.177373
13
0.168
f(b)
0.2
1.17883
Procedure
0.205657
1.2785
0.208
1.42209
0.717012 search
0.62501 search
0.211314
1.63076
0.216
1.93816
0.496814 search
0.319102 search
0.222627
2.40105
0.232
0.0743105 search
-0.26046 search
f(x)
Procedure
13
0.232
-0.26046
14
0.225737
15
0.224679 -5.21812e-05
interpolation
16
0.224679 -5.21812e-05
interpolation
-0.0381404
initial
interpolation
xw =
0.2247
a=inline('1.424*(t-473.15)+14.394e-3/2*(t^2-473.15^2)-4.392e-6/3*(t^3473.15^3)-800/(8.314*0.01)')
a=
Inline function:
a(t) = 1.424*(t-473.15)+14.394e-3/2*(t^2-473.15^2)-4.392e-6/3*(t^3473.15^3)-800/(8.314*0.01)
>> x=fzero(a,1370,optimset('disp','iter','tolx',1e-4))
1370
1331.25
f(a)
-57.7464
-555.774
f(b)
1370
Procedure
1408.75
443.825 search
f(x)
Procedure
1408.75
443.825
initial
1374.34
-1.74009
interpolation
1374.34
-1.74009
interpolation
x=
1.3743e+03
t=
10
30
60 100
d=
1.3101
1.2953
1.2732
1.2446
d1 =
1.3064
d2 =
1.6923
1.6014
1.5753
t2 =
10
30
60 100
1.5417
>> t3=interp1(d2,t2,'spline')
t3 =
1.0e+04 *
>> t3=interp1(d2,t2,1.6955,'spline')
t3 =
13.4318