blob: 41d9815d74335b8931c8252e6f2e7720f4102db2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
clear
//Given
//Variable declaration
L=30 //Length in cm
b=4 //Breadth in cm
d=4 //Depth in cm
P=400*(10**3) //Axial compressive load in N
delL=0.075 //Decrease in length in cm
delb=0.003 //Increase in breadth in cm
//Calculation
A=(b*d)*1e2 //Area of cross-section in sq.mm
long_strain=delL/L //Longitudinal strain
lat_strain=delb/b //Lateral strain
mu=lat_strain/long_strain //Poisson's ratio
E=int((P)/(A*long_strain)) //Youngs modulus
//Result
printf("\n Youngs modulus = %.e N/mm^2",E)
|