summaryrefslogtreecommitdiff
path: root/3764/CH5/EX5.1/Ex5_1.sce
blob: f96f0fa5bc93378647c7d550b0a080bf4b1bbce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc
//
//

//Variable declaration
M=8                                                                        // Bending moment(kip.in)
A=(2.5)*(1.5)                                                              // Area(in**2)  
R=5.969                                                                     
e=0.0314                                                                   // Distance(in)

//Calculation         
// Case(a)
Smax=((8)*(6.75-5.969))/((3.75)*(0.0314)*(6.75))                           // Maximum stress(ksi)  
Smin=((8)*(5.25-5.969))/((3.75)*(0.0314)*(5.25))                           // Minimum stress(ksi)

// Result
printf("\n Maximum stress = %0.3f ksi' ,Smax)
printf("\n Minimum stress = %0.3f ksi' ,Smin)