summaryrefslogtreecommitdiff
path: root/3137/CH13/EX13.14/Ex13_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '3137/CH13/EX13.14/Ex13_14.sce')
-rwxr-xr-x3137/CH13/EX13.14/Ex13_14.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3137/CH13/EX13.14/Ex13_14.sce b/3137/CH13/EX13.14/Ex13_14.sce
new file mode 100755
index 000000000..8293807d4
--- /dev/null
+++ b/3137/CH13/EX13.14/Ex13_14.sce
@@ -0,0 +1,15 @@
+//Initilization of variables
+theta=10 //degrees
+v=10 //ft/s
+v0=0 //ft/s
+u=1/3 //coefficient of friction
+g=32.2 //ft/s^2
+//Calculations
+//Equations of motion for box are
+//Simplfying the equations by sybstitution
+a=((u*cosd(theta))-sind(theta))*g //ft/s^2
+//Time calculations
+t=(v-v0)/a //s
+//Result
+clc
+printf('The value of a is %fft/s^2\n The time required is %f seconds',a,t)