summaryrefslogtreecommitdiff
path: root/1394/CH5/EX5.2.2/Ex5_2_2.sce
blob: 1f92b47edd9af64ee64a0f89366fd4a0c002bfb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

clc
//Initialization of variables
kb = 1.38*10^-16//g-cm^2-sec^2-K
T = 310 // kelvin
k = 30 // which is a/b
D = 2.0*10^-7 // cm^2/sec
Mu = 0.00695 // g/cm-sec
//Calculations
a = ((kb*T/(6*%pi*Mu*D))*((log(k + ((k^2-1)^(0.5))))/((1-(1/k^2))^0.5)))*10^7 // nm
b = a/k // nm
//Results
printf("The results of a and b are %.f nm and %.1f nm",a,b)