diff options
Diffstat (limited to '1394/CH5/EX5.2.2/Ex5_2_2.sce')
-rwxr-xr-x | 1394/CH5/EX5.2.2/Ex5_2_2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1394/CH5/EX5.2.2/Ex5_2_2.sce b/1394/CH5/EX5.2.2/Ex5_2_2.sce new file mode 100755 index 000000000..1f92b47ed --- /dev/null +++ b/1394/CH5/EX5.2.2/Ex5_2_2.sce @@ -0,0 +1,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)
+
|