summaryrefslogtreecommitdiff
path: root/539/CH6/EX6.3.a/Example_6_3a.sce
blob: d8882fd860cac8f7d4035f9bd83ff411c14ac3dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;

printf("\tExample 6.3\n");

//From draph in the question
//stress and strain can be obtained

si2=150;           // in MPa
si1=0;
e2=0.0016;
e1=0;
d0=12.8*10^-3;    //Initial Diameter in m

printf("\n\tPart A");
//Young's Modulus = stress/strain
E=(si2-si1)/(e2-e1);
printf("\nModulus of elasticity is %.2f GPa",E/10^3);

//End