blob: ff320510923255edd1f0f7a5674bab6b8c63f25e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Example number 6.11, Page number 6.51
clc;clear;close
// variable declaration
n=4 // unitless
A=63.55 // Atomic wt. of NaCl
N=6.02*10^26 // Avagadro number
rho=8930 // density
// Calculations
a=((n*A)/(N*rho))^(1/3) // Lattice Constant
// Result
printf("lattice constant, a = %.2f nm",(a*10^9))
|