summaryrefslogtreecommitdiff
path: root/3137/CH16/EX16.29/Ex16_29.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH16/EX16.29/Ex16_29.sce
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 '3137/CH16/EX16.29/Ex16_29.sce')
-rwxr-xr-x3137/CH16/EX16.29/Ex16_29.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3137/CH16/EX16.29/Ex16_29.sce b/3137/CH16/EX16.29/Ex16_29.sce
new file mode 100755
index 000000000..797be84d6
--- /dev/null
+++ b/3137/CH16/EX16.29/Ex16_29.sce
@@ -0,0 +1,18 @@
+//Initilization of variables
+m=60 //kg
+me=660 //kg
+a=6 //m/s^2
+g=9.8 //m/s^2
+//Calculations
+//Using equations of motion
+P=m*a+m*g //N
+//Scale reading
+R=P/g //kg
+//Increase in mass
+I=R-m //kg
+//Tension
+T=me*a+me*g //N
+//Result
+clc
+printf('The value of P is %f N \n Apparent icrease in weight is %f kg\n Tension in the cable is %f N.',P,I,T)
+//Answer in the textbook is off by 28 //N in Tension