diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH16/EX16.3/Ex16_3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3137/CH16/EX16.3/Ex16_3.sce')
-rwxr-xr-x | 3137/CH16/EX16.3/Ex16_3.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3137/CH16/EX16.3/Ex16_3.sce b/3137/CH16/EX16.3/Ex16_3.sce new file mode 100755 index 000000000..747e33d0c --- /dev/null +++ b/3137/CH16/EX16.3/Ex16_3.sce @@ -0,0 +1,24 @@ +//Initilization of variables
+m=18 //kg
+d=0.6 //m
+vo=3 //m/s
+theta=20 //degrees
+g=9.8 //m/s^2
+//Calculations
+//Moment of Inertia
+I=0.5*m*(d/2)^2 //
+//Applying Newtons second Law a
+A=[1,m,0,0;0,0,1,0;d/2,0,0,-I;0,1,0,(-d/2)]
+B=[g*m*sind(theta);g*m*cosd(theta);0;0]
+C=inv(A)*B
+//Storing the answers in variables
+F=C(1) //N
+ax=C(2) //m/s^2
+Na=C(3) //N
+alpha=C(4) //rad/s^2
+//Time Calculations
+v=0 //m/s^2
+t=(vo)/ax //s
+//Result
+clc
+printf('It takes %f s to reach the highest point of travel',t)
|