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