summaryrefslogtreecommitdiff
path: root/3411/CH15/EX7.1.u2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /3411/CH15/EX7.1.u2
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '3411/CH15/EX7.1.u2')
-rw-r--r--3411/CH15/EX7.1.u2/Ex7_1_u2.sce14
-rw-r--r--3411/CH15/EX7.1.u2/Ex7_1_u2.txt1
2 files changed, 9 insertions, 6 deletions
diff --git a/3411/CH15/EX7.1.u2/Ex7_1_u2.sce b/3411/CH15/EX7.1.u2/Ex7_1_u2.sce
index a17e3227c..016f1977b 100644
--- a/3411/CH15/EX7.1.u2/Ex7_1_u2.sce
+++ b/3411/CH15/EX7.1.u2/Ex7_1_u2.sce
@@ -1,11 +1,13 @@
//Example 7_1_u2
clc();
clear;
-//To calculate the mean free path
-mn=0.26*0.91*10^-30
-un=1000*10^-4
-e=1.6*10^-19
-tc=(mn*un)/e
+//To calculate the mean free path and mean free time
+mn=0.26*0.91*10^-30 //units in Kgs
+un=1000*10^-4 //units in cm^2 V^-1 s^-1
+e=1.6*10^-19 //units in coulombs
+tc=(mn*un)/e //units in s
+tc1=tc*10^12 //units in ps
+printf("The mean free time is %.3fps",tc1)
vth=10^7
meanfreepath=vth*tc*10^7 //units in nm
-printf("The mean free path is given by L=%.1f nm",meanfreepath)
+printf("\nThe mean free path is given by L=%.1f nm",meanfreepath)
diff --git a/3411/CH15/EX7.1.u2/Ex7_1_u2.txt b/3411/CH15/EX7.1.u2/Ex7_1_u2.txt
index f153fb915..b7414acff 100644
--- a/3411/CH15/EX7.1.u2/Ex7_1_u2.txt
+++ b/3411/CH15/EX7.1.u2/Ex7_1_u2.txt
@@ -1 +1,2 @@
+The mean free time is 0.148ps
The mean free path is given by L=14.8 nm \ No newline at end of file