summaryrefslogtreecommitdiff
path: root/3137/CH13/EX13.3/Ex13_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3137/CH13/EX13.3/Ex13_3.sce')
-rwxr-xr-x3137/CH13/EX13.3/Ex13_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3137/CH13/EX13.3/Ex13_3.sce b/3137/CH13/EX13.3/Ex13_3.sce
new file mode 100755
index 000000000..1a6f52a1f
--- /dev/null
+++ b/3137/CH13/EX13.3/Ex13_3.sce
@@ -0,0 +1,18 @@
+//Initilization of variables
+m=2 //kg
+vo=0 //m/s
+v=3 //m/s
+s=0.8 //m
+theta=20 //degrees
+g=9.8 //m/s^2
+//Calculations
+N=m*g*cosd(theta) //N
+a=(vo^2-v^2)/(2*s) //m/s^2
+u=-((2*a)+(m*g*sind(theta)))/N
+//Solving for return speed
+//Symbol convention is different from textbook
+a_ret=((m*g*sind(theta))-(u*N))/2 //m/s^2
+vf=sqrt((2*a_ret*s)) //m/s
+//Result
+clc
+printf('The speed is %fm/s',vf)