diff options
Diffstat (limited to '557/CH2/EX2.6/6.sce')
-rwxr-xr-x | 557/CH2/EX2.6/6.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/557/CH2/EX2.6/6.sce b/557/CH2/EX2.6/6.sce new file mode 100755 index 000000000..cfd4e7b8c --- /dev/null +++ b/557/CH2/EX2.6/6.sce @@ -0,0 +1,11 @@ +clc ;funcprot(0);
+//Example 2.6
+
+//Initializing the variables
+rho = 10^3; //Density of water
+h = 2; //Height
+g = 9.81; //Acceleration due to gravity
+
+//Calculations
+p=rho*h*g;
+disp(p/1000,"Gauge pressure (k/m2) :");
|