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 /3204/CH14/EX14.25 | |
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 '3204/CH14/EX14.25')
-rw-r--r-- | 3204/CH14/EX14.25/Ex14_25.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/3204/CH14/EX14.25/Ex14_25.sce b/3204/CH14/EX14.25/Ex14_25.sce new file mode 100644 index 000000000..a3404c0bd --- /dev/null +++ b/3204/CH14/EX14.25/Ex14_25.sce @@ -0,0 +1,22 @@ +// Initilization of variables
+P=30 // N // weight on pulley A
+Q=20 // N // weight on pulley B
+R=10 // N // weight on puey B
+g=9.81 // m/s^2 // acc due to gravity
+// Calculations
+// Solving eqn's 6 & 7 using matrix for a & a_1, we get
+A=[70 -40;-10 30]
+B=[10;-10]
+C=inv(A)*B
+// Acceleration of P is given as,
+P=C(1) // m/s^2
+// Acceleration of Q is given as,
+Q=C(2)-C(1) // m/s^2
+// Acceleration of R is given as,
+R=-(C(2)+C(1)) // m/s^2 // as R is taken to be +ve
+// Results
+clc
+printf('The acceleration of P is %f g \n',P)
+printf('The acceleration of Q is %f g \n',Q)
+printf('The acceleration of R is %f g \n',R)
+// Here the -ve sign indicates deceleration or backward/downward acceleation.
|