summaryrefslogtreecommitdiff
path: root/3137/CH16/EX16.26/Ex16_26.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.26/Ex16_26.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.26/Ex16_26.sce')
-rwxr-xr-x3137/CH16/EX16.26/Ex16_26.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3137/CH16/EX16.26/Ex16_26.sce b/3137/CH16/EX16.26/Ex16_26.sce
new file mode 100755
index 000000000..a2f826b43
--- /dev/null
+++ b/3137/CH16/EX16.26/Ex16_26.sce
@@ -0,0 +1,16 @@
+//Initilization of variables
+AB=2 //m
+m=2 //kg
+F=20 //N
+g=9.8 //m/s^2
+//Calculations
+//Using equation of motion
+a=F/m //m/s^2
+//Solving by matrix method for Na and Nb
+A=[1,-1;4/5,4/5]
+B=[m*g;F*(3/5)]
+C=inv(A)*B
+//Result
+clc
+printf('The value of a is %f m/s^2 and the reactions are\n Na=%f N and Nb=%f N',a,C(1),C(2))
+