diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH10/EX10.1/Ex10_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2837/CH10/EX10.1/Ex10_1.sce')
-rwxr-xr-x | 2837/CH10/EX10.1/Ex10_1.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2837/CH10/EX10.1/Ex10_1.sce b/2837/CH10/EX10.1/Ex10_1.sce new file mode 100755 index 000000000..fea25d60d --- /dev/null +++ b/2837/CH10/EX10.1/Ex10_1.sce @@ -0,0 +1,23 @@ +clc
+clear
+//Initialization of variables
+p=3000 //psia
+T=250 //F
+//calculations
+disp("From table 1, keenan and keynes,")
+vf=0.01700
+disp("From table 4,")
+dvf=-18.3*10^-5
+v=vf+dvf
+disp("From table 1,")
+hf=218.48
+disp("From table 4,")
+dhf=6.13
+h=hf+dhf
+sf=0.3675
+dsf=-4.34*10^-3
+s=sf+dsf
+//results
+printf("Specific volume = %.5f cu ft/lb",v)
+printf("\n Enthalpy = %.2f Btu/lb",h)
+printf("\n Entropy = %.4f Btu/lb per deg R",s)
|