diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1100/CH10 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1100/CH10')
-rwxr-xr-x | 1100/CH10/EX10.6/10_6.sce | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/1100/CH10/EX10.6/10_6.sce b/1100/CH10/EX10.6/10_6.sce index cb9c95d09..7ff780085 100755 --- a/1100/CH10/EX10.6/10_6.sce +++ b/1100/CH10/EX10.6/10_6.sce @@ -1,19 +1,19 @@ - clc
-//initialisation of variables
-P= 15 //psia
-S= 1.7050 //Btu/lb R
-sg= 1.7549 //btu/lb R
-sfg= 1.4415 //Bru/lb R
-hg= 1150.8 //btu/lb
-hfg= 969.7 //Btu/lb
-vg= 26.29 //cu ft/lb
-vfg= 26.27 //cu ft/lb
-//CALCULATIONS
-n= (sg-sx)/sfg
-sx= sg-n*sfg
-hx= hg-n*hfg
-vx= vg-n*vfg
-//RESULTS
-printf ('Volume= %.2f cu ft/lb',vx)
-printf (' \n Entropy = %.2f Btu/lb R',sx)
-printf (' \n Enthalpy= %.1f Btu/lb',hx)
+clc +//initialisation of variables +P= 15 //psia +sx= 1.7050 //Btu/lb R +sg= 1.7549 //btu/lb R +sfg= 1.4415 //Bru/lb R +hg= 1150.8 //btu/lb +hfg= 969.7 //Btu/lb +vg= 26.29 //cu ft/lb +vfg= 26.27 //cu ft/lb +//CALCULATIONS +n= (sg-sx)/sfg +sx= sg-n*sfg +hx= hg-n*hfg +vx= vg-n*vfg +//RESULTS +printf ('Volume= %.2f cu ft/lb',vx) +printf (' \n Entropy = %.2f Btu/lb R',sx) +printf (' \n Enthalpy= %.1f Btu/lb',hx)
\ No newline at end of file |