summaryrefslogtreecommitdiff
path: root/1457/CH2/EX2.7
diff options
context:
space:
mode:
Diffstat (limited to '1457/CH2/EX2.7')
-rwxr-xr-x1457/CH2/EX2.7/2_7.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1457/CH2/EX2.7/2_7.sce b/1457/CH2/EX2.7/2_7.sce
new file mode 100755
index 000000000..44b9d8516
--- /dev/null
+++ b/1457/CH2/EX2.7/2_7.sce
@@ -0,0 +1,17 @@
+clc
+//Initialization of variables
+v=180 //m/s
+angle=40 //degrees
+a=4 //m/s^2
+r=2600 //m
+g=9.81 //m/s^2
+//calculations
+//Assume outward and right as positive
+an=-v*v/r
+at=-a
+ax=at*cosd(angle) +an*sind(angle)
+az=at*sind(angle) -an*cosd(angle)
+tangent=ax/(az+g)
+theta=atand(tangent)
+//Results
+printf('Angle made by the free liquid = %.2f degrees',-theta)