From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3137/CH16/EX16.16/Ex16_16.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 3137/CH16/EX16.16/Ex16_16.sce (limited to '3137/CH16/EX16.16/Ex16_16.sce') diff --git a/3137/CH16/EX16.16/Ex16_16.sce b/3137/CH16/EX16.16/Ex16_16.sce new file mode 100755 index 000000000..f6bfd3395 --- /dev/null +++ b/3137/CH16/EX16.16/Ex16_16.sce @@ -0,0 +1,22 @@ +//Initilization of variables +mc=7.25 //kg +d=0.9 //m +la=0.2 //m +ma=9 //kg +F=45 //N +ay=0 //m/s^2 +g=9.8 //m/s^2 +//Calculations +I=2*(0.5*mc*(d/2)^2)+0.5*ma*(la/2)^2 //kg-m^2 +//Using the equations of motion +Na=(2*mc+ma)*g //N +//Simplfying using radial velocity formula +//Solving the two equations using matrix method +A=[-1,-(2*mc+ma);(d/2),-I/(d/2)] +B=[-F;F*(la/2)] +C=inv(A)*B +F=C(1) //N +ax=C(2) //m/s^2 +//Result +clc +printf('The computation yields ax=%f m/s^2',ax) -- cgit