summaryrefslogtreecommitdiff
path: root/1205/CH14/EX14.1/S_14_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1205/CH14/EX14.1/S_14_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1205/CH14/EX14.1/S_14_1.sce')
-rw-r--r--1205/CH14/EX14.1/S_14_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1205/CH14/EX14.1/S_14_1.sce b/1205/CH14/EX14.1/S_14_1.sce
new file mode 100644
index 000000000..058806112
--- /dev/null
+++ b/1205/CH14/EX14.1/S_14_1.sce
@@ -0,0 +1,20 @@
+clc;
+m=200;//kg, mass of space vehicle
+vo=150;//m/s i, relative velocty of vehicle with frame at t=0
+mA=100;//kg, mass of part A
+mB=60;//kg, mass of part B
+mC=40;//kg, mass of part C
+
+t=2.5;//s, given time
+A=[555,-180,240];//m, Position of A at t=2.5
+B=[255,0,-120];//m, Position of B at t=2.5
+
+r=[vo*t,0,0];//m, Position of mass center G
+
+//recalling 14.12
+//m*r=mA*rA+mB*rB+mC*rC
+rA=A;//m,
+rB=B;//m
+
+rC=(m*r-mA*rA-mB*rB)/mC;//m, Position of part c at t=2.5 s
+printf("Position of part c at t=2.5 s is rC= (%.0f m)i +(%.0f m)j +(%.0f m)k\n",rC(1),rC(2),rC(3));