summaryrefslogtreecommitdiff
path: root/1394/CH6/EX6.1.2/Ex6_1_2.sce
blob: 2637c576831b2bc41e4763aa4808ceed367a25ff (plain)
1
2
3
4
5
6
7
8
9
10
11

clc
//Initialization of variables
z1 = 3
z2 = 1
D2 = 2.03*10^-5 // cm^2/sec
D1 = 0.62*10^-5 // cm^2/sec
//Calculations
D = ((z1+z2)/((z1/D2)+(z2/D1)))*10^5// x*10^-5 cm^2/sec
//Results
printf("The diffusion coefficient is %.2f x10^-5 cm^2/sec",D)