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