summaryrefslogtreecommitdiff
path: root/3776/CH10/EX10.15/Ex10_15.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 10:59:42 +0530
committerprashantsinalkar2018-02-03 10:59:42 +0530
commitd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (patch)
tree612077a22c8142c0ae754ec11882a4e7d5dc25a4 /3776/CH10/EX10.15/Ex10_15.sce
parentf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (diff)
downloadScilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.gz
Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.bz2
Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.zip
Modified the code
Diffstat (limited to '3776/CH10/EX10.15/Ex10_15.sce')
-rw-r--r--3776/CH10/EX10.15/Ex10_15.sce23
1 files changed, 10 insertions, 13 deletions
diff --git a/3776/CH10/EX10.15/Ex10_15.sce b/3776/CH10/EX10.15/Ex10_15.sce
index 72f3ed920..62eb98e8c 100644
--- a/3776/CH10/EX10.15/Ex10_15.sce
+++ b/3776/CH10/EX10.15/Ex10_15.sce
@@ -1,17 +1,14 @@
clear
//Given
-E = 30*(10**3) //ksi - The youngs modulus of the material
+E = 30*(10**3) //ksi - The youngs modulus of the material
stress_y = 40 //ksi - yield stress
-stress_max = 24.2 //ksi - the maximum stress
-l = 2 //in - The length of the crossection
+stress_max = 24.4 //ksi - the maximum stress
+l = 2 //in - The length of the crossection
b = 3 //in - the width of the crossection
-h = 3 //in - the depth of the crossection
-//lets check ultimate capacity for a 2 in deep section
-M_ul = stress_y*b*(l**2)/4 //K-in the ultimate capacity
-curvature = 2*stress_y/(E*(h/2) ) //in*-1 the curvature of the beam
-curvature_max = stress_max/(E*(h/2)) //in*-1 The maximum curvature
-printf("\n the ultimate capacity %0.3f k-in",M_ul)
-printf("\n the ultimate curvature %0.3f in *-1",curvature_max)
-printf("\n E given in equation is wrong")
-printf("\n Actual E in question is 30*10**3")
-
+h = 2 //in - the depth of the crossection
+//lets check ultimate capacity for a 2 in deep section
+M_ul = stress_max*b*(l**2)/4 //K-in the ultimate capacity
+curvature = 2*stress_y/(E*(h/2) ) //per inch the curvature of the beam
+curvature_max = stress_max/(E*(b/2)) //per inch The maximum curvature
+printf("\n the curvature in 11-in is %e per inch",curvature)
+printf("\n the ultimate curvature %e per inch",curvature_max)