Открыть Электронные книги
Категории
Открыть Аудиокниги
Категории
Открыть Журналы
Категории
Открыть Документы
Категории
GAS O2
P(atm) 50
T(K) 373.15
V(l/gmol) se hallara
R(atm-l/
molk) 0.082
Pc(atm) 49.7
Tc(K) 154.4
a 17.1447176
b 0.02208635
Vincial 0.611966
inicial 0.611966
variacion 0.1
V f(V)
0.611966 137.398704
0.711966 235.487359
0.811966 370.508097
0.911966 548.256045
1.011966 774.526331
1.111966 1055.11408
1.211966 1395.81442
1.311966 1802.42248
1.411966 2280.73339
1.511966 2836.54227
1.611966 3475.64425
1.711966 4203.83446
1.811966 5026.90802
1.911966 5950.66007
2.011966 6980.88573
2.111966 8123.38012
2.211966 9383.93838
2.311966 10768.3556
2.411966 12282.427
2.511966 13931.9476
2.611966 15722.7126
2.711966 17660.5171
2.811966 19751.1562
2.911966 22000.4251
3.011966 24414.1188
3.111966 26998.0326
V vs f(V)
30000
25000
20000
15000
10000
5000
0
0 0.5 1 1.5 2 2.5 3 3.5
PUNTO FIJO:
PUNTO
FIJO
10^-6 10^-5
|Vi+1-
i Vi+1 f(vi+1) g'(VI+1) Vi+1|
0 0.611966
0.0290156 0.01641246 0.5829503
1 6 0.2974926 5 4
-9.3222E- 0.01482576 0.0290249
2 06 4.4617E-05 6 9
0.01482627
3 2.5151E-08 1.2043E-07 7 9.3474E-06
-6.7839E- 0.01482627
4 11 3.2482E-10 6 2.5219E-08
0.01482627
5 1.8298E-13 8.7612E-13 6 6.8022E-11
Untitled433
Pv=nRT;V=RT/P
6.119660000000000e-01
4.000000000000000e+00 9.667926964507956e-10
5.000000000000000e+00 1.433393510488916e-11
6.000000000000000e+00 2.125188739888819e-13
7.000000000000000e+00 3.150863420954191e-15
10^-6 10^-5
|Vi+1-
i Vi+1 f(vi+1) g'(VI+1) Vi+1|
0 0.611966
0.4649387 48.076242 0.1470272
1 2 3 539.350106 8
0.3758013 18.905420 360.774773 0.0891373
2 6 4 4 6
0.3233990 8.4912403 277.284713 0.0524022
3 8 5 2 8
0.2927762 4.2912591 0.0306228
4 6 1 235.861775 2
2.3678851 213.824667 0.0181939
5 0.2745823 3 4 6
0.2635083 1.3871747 201.350668 0.0110739
6 4 5 1 6
0.8452690 193.948913 0.0068893
7 0.256619 4 1 5
0.2522607 0.5284223 189.408595
8 9 1 4 0.0043582
0.2494709 0.3358885 186.559947 0.0027898
9 4 3 2 5
0.2476705 0.2158306 184.745519 0.0018004
10 1 9 1 3
0.2465022 0.1396685 183.578227 0.0011682
11 5 4 3 6
0.2457414 0.0908003 0.0007608
12 3 6 182.822298 1
0.2452447 0.0592088 182.330636 0.0004966
13 8 8 1 6
0.2449200 0.0386851 182.009942 0.0003247
14 4 1 7 3
0.0253082 0.0002125
15 0.2447075 8 181.800374 4
0.2445682 0.0165710 181.663255 0.0001392
16 9 4 4 1
0.2444770 181.573467
17 7 0.0108562 8 9.1218E-05
0.2444172 0.0071148 181.514642
18 8 3 1 5.979E-05
0.2443780 0.0046639 181.476088
19 8 6 3 3.9197E-05
0.2443523 0.0030578 181.450814
20 8 3 8 2.57E-05
0.2443355 0.0020050 181.434244
21 3 1 5 1.6852E-05
0.2443244 0.0013147 181.423379
22 8 6 3 1.1051E-05
0.2443172 0.0008621 181.416254
23 3 8 5 7.2469E-06
0.2443124 0.0005654 181.411582
24 8 1 2 4.7525E-06
0.2443093 181.408518
25 6 0.0003708 2 3.1167E-06
0.2443073 0.0002431 181.406508
26 2 7 8 2.044E-06
0
0 1 2 3 4 5 6 7 8 9 10
104
4.000000000000000e+00 3.205398616280409e-01
5.000000000000000e+00 3.205398614827409e-01
6.000000000000000e+00 3.205398614827409e-01
7.000000000000000e+00 3.205398614827409e-01
8.000000000000000e+00 3.205398614827409e-01
9.000000000000000e+00 3.205398614827409e-01
1.000000000000000e+01 3.205398614827409e-01
1.100000000000000e+01 3.205398614827409e-01
1.200000000000000e+01 3.205398614827409e-01
1.300000000000000e+01 3.205398614827409e-01
1.400000000000000e+01 3.205398614827409e-01
1.500000000000000e+01 3.205398614827409e-01
1.600000000000000e+01 3.205398614827409e-01
1.700000000000000e+01 3.205398614827409e-01
1.800000000000000e+01 3.205398614827409e-01
1.900000000000000e+01 3.205398614827409e-01
2.000000000000000e+01 3.205398614827409e-01
2.100000000000000e+01 3.205398614827409e-01
2.200000000000000e+01 3.205398614827409e-01
2.300000000000000e+01 3.205398614827409e-01
2.400000000000000e+01 3.205398614827409e-01
2.500000000000000e+01 3.205398614827409e-01
2.600000000000000e+01 3.205398614827409e-01
2.700000000000000e+01 3.205398614827409e-01
2.800000000000000e+01 3.205398614827409e-01
3.000000000000000e+01 3.205398614827409e-01
------------------------------------------------------------------
-----------------------------FINALIZA-----------------------------
METODO DE LA SECANTE
disp('****************************************************************
')
disp('METODO DE LA SECANTE')
disp('****************************************************************
')
syms x
P=50;
T=373.15;
R=0.082;
Pc=49.7;
Tc=154.40;
a1=0.4278*R*Tc^2.5/Pc;
b1=0.867*R*Tc/Pc;
clc
disp('----------------------------------------------------------------
')
disp('METODO DE LA SECANTE')
disp('----------------------------------------------------------------
')
disp('f(x)=0')
disp('----------------------------------------------------------------
')
disp('SUBPROGRAMA PARA GRAFICAR LAS ECUACIONES NO LINEALES')
disp('================================================================
')
syms x
a=input('ingrese intervalo inferior :');
e=input('ingrese espacios :');
b=input('ingrese intervalo superior :');
x=[a:e:b];
y=input('ingrese f(x) :');
plot(x,y,'g+')
title('GRAFICA DE LA FUNCION')
hold on
grid on
disp('================================================================
===')
syms x
f(x)=input('ingrese la ecuacion o funcion:');
x0=input('valor inicial 1: ');
x1=input('valor inicial 2: ');
dist=input('valor de distancia :');
eps1=input('valor de exactitud :');
maxit=input('maximo iteraciones: ');
i=1;
while i<maxit
x=x0-(x1-x0)*eval(f(x0))/(eval(f(x1))-eval(f(x0)));
if abs(x-x1)<dist
disp(x)
end
if abs(f(x))<eps1
disp(x)
end
x0=x1;
x1=x;
i=i+1;
end
----------------------------------------------------------------
METODO DE LA SECANTE
----------------------------------------------------------------
f(x)=0
----------------------------------------------------------------
================================================================
0
0 1 2 3 4 5 6 7 8 9 10
105
===================================================================
maximo iteraciones: 30
3.205398617572267e-01
3.205398617572267e-01
3.205398614827416e-01
3.205398614827416e-01
3.205398614827409e-01
3.205398614827409e-01
3.205398614827409e-01
3.205398614827409e-01
%DATOS:
P=50;
T=373.15;
R=0.082;
Pc=49.7;
Tc=154.40;
a1=0.4278*R*Tc^2.5/Pc;
b1=0.867*R*Tc/Pc;
disp('=========================================')
disp('SUBPROGRAMA PARA GRAFICAR FUNCIONES ')
disp('=========================================')
syms x
a=input('ingrese intervalo inferior :');
e=input('ingrese espacios :');
b=input('ingrese intervalo inferior :');
x=a:e:b;
y=input('ingrese f(x) :');
plot(x,y,'r')
title('GRAFICA DE LA FUNCION')
disp('=========================================')
disp(' TERMINA ')
=========================================
=========================================
=========================================
TERMINA
0
0 1 2 3 4 5 6 7 8 9 10
105
>> Untitled2
0000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000
ingrese xizq0.1
ingrese xder1
1.379194975302623e-01
1.704059197330289e-01
1.980927968578714e-01
2.214657745440953e-01
2.409750783892794e-01
2.570720089819832e-01
2.702090373923851e-01
2.808257799256554e-01
2.893331885360635e-01
2.961017003305272e-01
3.014549566448997e-01
3.056685203115221e-01
3.089721898107690e-01
3.115544522168879e-01
3.135679006506373e-01
3.151348068449639e-01
3.163523618328414e-01
3.172973376717850e-01
3.180300820410252e-01
3.185978524533941e-01
3.190375469059907e-01
3.193779091538090e-01
3.196412911865937e-01
3.198450507821740e-01
3.200026531057976e-01
3.201245350932260e-01
3.202187813483030e-01
3.202916512510701e-01
3.203479891910452e-01
0000000000000000000000000000000000000000000000000000000000000000000
FINALIZA
0000000000000000000000000000000000000000000000000000000000000000000
METODO DE LA BISECCION
%DATOS:
P=50;
T=373.15;
R=0.082;
Pc=49.7;
Tc=154.40;
a1=0.4278*R*Tc^2.5/Pc;
b1=0.867*R*Tc/Pc;
disp('<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
')
disp('METODO DE LA BISECCION')
disp('<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
')
syms x
f(x)=input('ingrese la ecuacion o funcion:');
xi=input('ingrese xizq:');
xd=input('ingrese xder:');
dist=input('ingrese criterio de distancia:');
eps1=input('ingrese criterio de exactitud:');
a=xd-xi;
max=(log(a)-log(dist))/log(2);
i=1;
fi=eval(f(xi));
fd=eval(f(xd));
while i<max
xm=(xi+xd)/2;
fm=eval(f(xm));
if abs(fm)<eps1
disp(xm)
end
if abs(xd-xi)<dist
xm=(xd+xi)/2;
fprintf('la raiz es:')
disp(xm)
end
if fd*fm>0
xd=xm;
fd=fm;
end
if fd*fm<0
xi=xm;
fi=fm;
end
i=i+1;
disp(xm)
end
disp('<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
')
disp(' FINALIZA
')
disp('<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
')
>> Untitled2
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
METODO DE LA BISECCION
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
ingrese xizq:0.01
ingrese xder:R*T/P
3.109830000000000e-01
4.614745000000000e-01
3.862287500000000e-01
3.486058750000000e-01
3.297944375000000e-01
3.203887187500000e-01
3.250915781250000e-01
3.227401484375000e-01
3.215644335937500e-01
3.209765761718750e-01
3.206826474609376e-01
3.205356831054688e-01
3.206091652832032e-01
3.205724241943360e-01
3.205540536499024e-01
3.205448683776856e-01
3.205402757415772e-01
3.205379794235230e-01
3.205391275825501e-01
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
FINALIZA
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>