From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 3411/CH15/EX7.5.u2/Ex7_5_u2.sce | 18 ++++++++++-------- 3411/CH15/EX7.5.u2/Ex7_5_u2.txt | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to '3411/CH15/EX7.5.u2') 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 -- cgit