summaryrefslogtreecommitdiff
path: root/3411/CH15/EX7.5.u2/Ex7_5_u2.sce
blob: cb96ea6fd4f14b6196a026e05fbcf0f9c634c442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 7_5_u2
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
printf("The hall voltage is Vh=%.5f mV",Vh)