summaryrefslogtreecommitdiff
path: root/3863/CH7/EX7.8/Ex7_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3863/CH7/EX7.8/Ex7_8.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3863/CH7/EX7.8/Ex7_8.sce')
-rw-r--r--3863/CH7/EX7.8/Ex7_8.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3863/CH7/EX7.8/Ex7_8.sce b/3863/CH7/EX7.8/Ex7_8.sce
new file mode 100644
index 000000000..97695e9bd
--- /dev/null
+++ b/3863/CH7/EX7.8/Ex7_8.sce
@@ -0,0 +1,29 @@
+clear
+//
+//
+
+//Given
+//Variable declaration
+W=20*1000 //Total load in N
+L=3.6 //Span in m
+sigma_max=7 //Maximum stress in N/sq.mm
+
+//Calculation
+M1=W*L/8*1e3 //Maximum Bending moment in Nmm
+b1=((M1*3/(sigma_max*2))**(1/3)) //Breadth of the beam in mm
+
+d1=int((2*b1)) //depth of the beam in mm
+
+M2=W*L/4*1e3 //Maximum Bending moment in Nmm
+b2=(((M2*3/(sigma_max*2))**(1/3))) //Breadth of the beam in mm
+
+d2=2*b2 //depth of the beam in mm
+
+//Result
+printf("\n Dimensions of the cross-section:")
+printf("\n Breadth of beam = %0.3f mm",b1)
+printf("\n Depth of beam %0.3f mm",d1)
+
+printf("\n Dimensions of the cross-section when the beam carries a point load at the centre:")
+printf("\n Breadth of beam = %0.3f mm",b2)
+printf("\n Depth of beam %0.3f mm",d2)