blob: 4324799182fb4e5c00a4f06f706814449e809fd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 :");
|