summaryrefslogtreecommitdiff
path: root/3651/CH1/EX1.1/Ex1_1.sce
blob: f53cbe59f212ae6303f1ac5835f21fcc5412191d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Initialisation of variables
clc
//Variable declaration
a=7.68*10**-29;     
r0=2.5*10**-10;    //radius(m)

//Calculation
b=a*(r0**8)/9;
y=((-2*a*r0**8)+(90*b))/r0**11;    
E=y/r0;           //young's modulus(Pa)

//Result

printf('youngs modulus is %0.2f GPa',(E/10^9))