From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3137/CH8/EX8.5/Ex8_5.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 3137/CH8/EX8.5/Ex8_5.sce (limited to '3137/CH8/EX8.5') diff --git a/3137/CH8/EX8.5/Ex8_5.sce b/3137/CH8/EX8.5/Ex8_5.sce new file mode 100755 index 000000000..426ae14a9 --- /dev/null +++ b/3137/CH8/EX8.5/Ex8_5.sce @@ -0,0 +1,29 @@ +//Initlization of variables +F1=2000 //lb +w=100 //lb/ft +//Calculations +R_r=(-F1*5+w*14*13)/20 //lb +R_l=(F1*25+w*14*7)/20 //lb +//Shear Force matrix +V=[-2000,-2000,990,990,-410,0] //lb +//Bending Moment matrix +B=[0,-10000,-4060,840,0] +//Length matrix for shear force +X_v=[0,5,5.0001,11,20.89999,20.9] +//Length matrix for bendimg moment +X_b=[0,5,11,19.9,20.9] +//Plotting +subplot(221) +plot(X_v,V,X_v,0) +xlabel("Shear Force Diagram","Span","Shear Force") +subplot(222) +plot(X_b,B,X_b,0) +xlabel("Bending Moment Diagram","Span","Bending Moment") +//Result +clc +printf('The bending Moment and Shear Force diagrams have been plotted\n') +//Note +//The textbook does not specify the span and hence there seems to be a disagreement between the textbook and scilab solution.here the values have just been plotted + + + -- cgit