summaryrefslogtreecommitdiff
path: root/3204/CH14/EX14.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3204/CH14/EX14.3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3204/CH14/EX14.3')
-rw-r--r--3204/CH14/EX14.3/Ex14_3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3204/CH14/EX14.3/Ex14_3.sce b/3204/CH14/EX14.3/Ex14_3.sce
new file mode 100644
index 000000000..9db304e2c
--- /dev/null
+++ b/3204/CH14/EX14.3/Ex14_3.sce
@@ -0,0 +1,15 @@
+// Initilization of variables
+a_T=0.18 // m/s^2 // acc of trolley
+// Calculations
+a_B=-a_T/3 // m/s^2 // from eq'n 4
+t=4 // seconds
+v_T=a_T*t // m/s // velocity of trolley after 4 seconds
+v_B=-v_T/3 // m/s // from eq'n 3
+S_T=(1/2)*a_T*t^2 // m // distance moved by trolley in 4 sec
+S_B=-S_T/3 // m // from eq'n 2
+// Results
+clc
+printf('The acceleration of block B is %f m/s^2 \n',a_B)
+printf('The velocity of trolley & the block after 4 sec is %f m/s & %f m/s \n',v_T,v_B)
+printf('The distance moved by the trolley & the block is %f m & %f m \n',S_T,S_B)
+// The -ve sign indicates that the velocity or the distance travelled is in opposite direction.