summaryrefslogtreecommitdiff
path: root/226/CH1/EX1.2/example2_sce.sce
blob: 25c1294c9458cf7d1c9e6ef8846cfad050549edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//chapter 1
//example 1.2
//page 18
printf("\n")
printf("given")
l=1*10^-3;E=10;
un=1500*10^-4;up=500*10-4;
Vn=-(un*E)/l;
printf("drift current is %dm/s\n",Vn)
disp("drift current of hole")
Vp=(up*E)/l;
printf("drift current is %dm/s\n",Vp)