summaryrefslogtreecommitdiff
path: root/3753/CH6/EX6.10/Ex6_10.sce
blob: 69eb863f519bef10ad72be7f569132fa79393f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example number 6.10, Page number 6.50

clc;clear;close

// variable declaration
n=4     // unitless
M=58.5                  // Molecular wt. of NaCl
N=6.02*10^26           // Avagadro number
rho=2180                // density

// Calculations
a=((n*M)/(N*rho))^(1/3)   // in m
s=a/2 // in m

// Result
printf("a= %.3e m",a)
printf("\nspacing between the nearest neighbouring ions = %.4f nm",(s/10^-9))