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

//Given
//Variable declaration
D=25        //Diameter of brass rod in mm
P=50*10**3  //Tensile load in N
L=250       //Length of rod in mm
dL=0.3      //Extension of rod in mm

//Calculation
A=(%pi/4)*(D**2)    //Area of rod in sq.mm
sigma=(P/A)      //Stress in N/sq.mm

e=dL/L                  //Strain
E=(sigma/e)             //Youngs Modulus in N/sq.m

//Result
printf("\n Youngs Modulus of a rod,E = %0.3f  GN/m^2",E*(10**-3))