diff options
Diffstat (limited to '3840/CH2/EX2.2/Ex2_2.sce')
-rw-r--r-- | 3840/CH2/EX2.2/Ex2_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3840/CH2/EX2.2/Ex2_2.sce b/3840/CH2/EX2.2/Ex2_2.sce new file mode 100644 index 000000000..fe0f81c13 --- /dev/null +++ b/3840/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,16 @@ +clear +// +// +// + +//Variable declaration +N=6.02*10**26 //Avagadro Number +n=2 +rho=530 //density(kg/m**3) +M=6.94 //atomic weight(amu) + +//Calculation +a=(n*M/(rho*N))**(1/3)*10**10 //lattice constant(angstrom) + +//Result +printf("\n lattice constant is %0.3f angstrom",a) |