diff options
Diffstat (limited to '2066/CH4/EX4.8')
-rwxr-xr-x | 2066/CH4/EX4.8/4_8.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2066/CH4/EX4.8/4_8.sce b/2066/CH4/EX4.8/4_8.sce new file mode 100755 index 000000000..7319f38fe --- /dev/null +++ b/2066/CH4/EX4.8/4_8.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Initialization of variables
+x=12 //ft
+angle=30 //degrees
+g=32.2 //ft/s^2
+z=-2 //ft
+d=2 //in
+//calculations
+vj= x/cosd(angle) *sqrt(g/(2*(x*tand(angle) -z)))
+Q=%pi/4 *(d/12)^2 *vj
+//results
+printf("Rate of flow = %.2f ft^3/s",Q)
|