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 /3137/CH16/EX16.26/Ex16_26.sce | |
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 '3137/CH16/EX16.26/Ex16_26.sce')
-rwxr-xr-x | 3137/CH16/EX16.26/Ex16_26.sce | 16 |
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))
+
|