From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 3137/CH8/EX8.5/Ex8_5.sce | 61 +++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 29 deletions(-) (limited to '3137/CH8/EX8.5') diff --git a/3137/CH8/EX8.5/Ex8_5.sce b/3137/CH8/EX8.5/Ex8_5.sce index 426ae14a9..19fa8e967 100755 --- a/3137/CH8/EX8.5/Ex8_5.sce +++ b/3137/CH8/EX8.5/Ex8_5.sce @@ -1,29 +1,32 @@ -//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 - - - +//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 bending moment +X_b=[0,5,11,19.9,20.9] +//Plotting +subplot(221) +plot(X_v,V) +mtlb_hold on +plot(X_v,zeros(1,length(X_v))) +mtlb_hold off +xlabel("Shear Force Diagram","Span","Shear Force") +subplot(222) +plot(X_b,B) +mtlb_hold on +plot(X_b,zeros(1,length(X_b))) +mtlb_hold off +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 \ No newline at end of file -- cgit