diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /3411/CH15/EX7.5.u2 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-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.5.u2')
-rw-r--r-- | 3411/CH15/EX7.5.u2/Ex7_5_u2.sce | 18 | ||||
-rw-r--r-- | 3411/CH15/EX7.5.u2/Ex7_5_u2.txt | 2 |
2 files changed, 11 insertions, 9 deletions
diff --git a/3411/CH15/EX7.5.u2/Ex7_5_u2.sce b/3411/CH15/EX7.5.u2/Ex7_5_u2.sce index cb96ea6fd..d5629a661 100644 --- a/3411/CH15/EX7.5.u2/Ex7_5_u2.sce +++ b/3411/CH15/EX7.5.u2/Ex7_5_u2.sce @@ -2,12 +2,14 @@ clc();
clear;
//To find the hall voltage
-e=1.6*10^-19 //units in eV
-n=10^16
-Rh=-1/(e*n)
-i=10^-3
-Bz=10^-4
-a=2.5*10^-3
-w=500*10^-4
-Vh=((Rh*i*Bz)/a)*w //units in mV
+e=1.6*10^-19 //units in coulombs
+n=10^16 //units in no of atoms for cm^-3
+Rh=-1/(e*n) //units in cm^3/C
+i=1 //units in milli amperes
+i=i*10^-3 //units in amperes
+Bz=10^-4 //units in wb/cm^2
+a=2.5*10^-3 //units in cm^2
+w=500*10^-4 //units in micro cm
+Vh=((Rh*i*Bz)/a)*w //units in V
+Vh=Vh*10^3 //units in mV
printf("The hall voltage is Vh=%.5f mV",Vh)
diff --git a/3411/CH15/EX7.5.u2/Ex7_5_u2.txt b/3411/CH15/EX7.5.u2/Ex7_5_u2.txt index 7a73cdce7..3e77f26e6 100644 --- a/3411/CH15/EX7.5.u2/Ex7_5_u2.txt +++ b/3411/CH15/EX7.5.u2/Ex7_5_u2.txt @@ -1 +1 @@ -The hall voltage is Vh=-0.00125 mV
\ No newline at end of file +The hall voltage is Vh=-1.25000 mV
\ No newline at end of file |