summaryrefslogtreecommitdiff
path: root/1472/CH17/EX17.1.b/17_1b.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /1472/CH17/EX17.1.b/17_1b.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '1472/CH17/EX17.1.b/17_1b.sce')
-rwxr-xr-x1472/CH17/EX17.1.b/17_1b.sce27
1 files changed, 14 insertions, 13 deletions
diff --git a/1472/CH17/EX17.1.b/17_1b.sce b/1472/CH17/EX17.1.b/17_1b.sce
index 0a7bb1974..d97b02f13 100755
--- a/1472/CH17/EX17.1.b/17_1b.sce
+++ b/1472/CH17/EX17.1.b/17_1b.sce
@@ -1,13 +1,14 @@
-clc
-//initialization of varaibles
-k=1.3
-P=100 //psia
-//calculations
-Pratio=(2/(k+1))^(k/(k-1))
-Pt=Pratio*P
-disp("From table 3,")
-ht=1221.5 //B/lb
-vt=8.841 //cu ft/lb
-at=w*vt/1700
-//results
-printf("Throat area = %.4f sq ft",at)
+clc
+//initialization of variables
+w = 1;
+k=1.3
+P=100 //psia
+//calculations
+Pratio=(2/(k+1))^(k/(k-1))
+Pt=Pratio*P
+disp("From table 3,")
+ht=1221.5 //B/lb
+vt=8.841 //cu ft/lb
+at=w*vt/1700
+//results
+printf("Throat area = %.4f sq ft",at) \ No newline at end of file