summaryrefslogtreecommitdiff
path: root/3863/CH1/EX1.18/Ex1_18.sce
blob: 1f0fb9f97db5a6f7701bde818194f7b8e0dd7767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
//

//Given
//Variable declaration
dL=0.21          //Extension in mm
L=400            //Length in mm
t=10             //Thickness in mm
a=100            //Width at bigger end in mm
b=50             //Width at smaller end in mm
E=2e5            //Youngs Modulus in N/sq.mm

//Calculation
P=int(dL/(((L)/(E*t*(a-b)))*((log(a)-log(b)))))*1e-3    //Axial load in kN


//Result
printf("\n Axial load = %0.3f  kN",P)