blob: d5b90caf3c6b20bcf2fccfb8c38ce2e9a3fb2c52 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Initialisation of variables
clc
r=1.278e-8
n=4//number of molecules per unit cell
M=63.54//for copper
a=4*r/sqrt(2)
N=6.023e23
d=n*M/(a^3*N)
printf('density is %f gm per cms \n',d)
|