summaryrefslogtreecommitdiff
path: root/1958/CH1/EX1.e.6/Chapter1_ex6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1958/CH1/EX1.e.6/Chapter1_ex6.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 '1958/CH1/EX1.e.6/Chapter1_ex6.sce')
-rwxr-xr-x1958/CH1/EX1.e.6/Chapter1_ex6.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1958/CH1/EX1.e.6/Chapter1_ex6.sce b/1958/CH1/EX1.e.6/Chapter1_ex6.sce
new file mode 100755
index 000000000..795e04ff9
--- /dev/null
+++ b/1958/CH1/EX1.e.6/Chapter1_ex6.sce
@@ -0,0 +1,12 @@
+clc
+clear
+//Input data
+m=[20,80]//Masses of blocks in kg
+F=1000//Force with which 20kg block is pulled in N
+
+//Calculations
+a=(F/(m(1)+m(2)))//Acceleration of the block in m/s^2
+T=F-(m(1)*a)//Tension in the string in N
+
+//Output
+printf('The acceleration produced is %i m/s^2 \n The tension in the string connecting the blocks is %i N',a,T)