diff options
Diffstat (limited to '689/CH2/EX2.1/1.sce')
-rw-r--r-- | 689/CH2/EX2.1/1.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/689/CH2/EX2.1/1.sce b/689/CH2/EX2.1/1.sce new file mode 100644 index 000000000..432479918 --- /dev/null +++ b/689/CH2/EX2.1/1.sce @@ -0,0 +1,17 @@ +//Example 2.1 On Law Of Continuity
+
+// Initialisation of variables
+dA_by_dS = -0.1;
+A = 4;
+V = 90;
+
+// Calculations
+dV_by_dS = -1*V*dA_by_dS/A;
+if(dV_by_dS > 0 ) then
+ flag = "Increasing";
+else flag = "Decreasing";
+end
+
+//Results
+disp(dV_by_dS,flag, "The Velocity (ft/sec)is :");
+
|