diff options
Diffstat (limited to '3768/CH2/EX2.2/Ex2_2.sce')
-rw-r--r-- | 3768/CH2/EX2.2/Ex2_2.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3768/CH2/EX2.2/Ex2_2.sce b/3768/CH2/EX2.2/Ex2_2.sce new file mode 100644 index 000000000..df87f0e2c --- /dev/null +++ b/3768/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,15 @@ +//Example number 2.2, Page number 32 + +clc;clear; +close; +// 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**8; // lattice constant(angstrom) + +// Result +printf( "lattice constant is %.4f Angstrom",a) |