diff options
Diffstat (limited to '2666/CH12/EX12.8/12_8.sce')
-rwxr-xr-x | 2666/CH12/EX12.8/12_8.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2666/CH12/EX12.8/12_8.sce b/2666/CH12/EX12.8/12_8.sce new file mode 100755 index 000000000..9d75f56c3 --- /dev/null +++ b/2666/CH12/EX12.8/12_8.sce @@ -0,0 +1,23 @@ +clc
+//initialisation of variables
+t1=35//F
+t2=70//F
+h=40000//Btu per hr
+d=0.8//ft
+p1=40//psia
+p2=200//psia
+q=80//percent
+h1=39.21//ft
+h2=81.16//ft
+s=0.16914//ft
+h3=93.79//ft
+g=2544//ft
+//CALCULATIONS
+H=h3-h2//Btu
+W=H/d//Btu
+H1=h2-h1//Btu per lb
+P=W+H1//Btu per lb
+W1=h*(W/P)//Btu per hr
+H2=W1/g//hp
+//RESULTS
+printf('The horsepower input is=% f hp',H2)
|