summaryrefslogtreecommitdiff
path: root/2594/CH2/EX2.2/Ex2_2.sce
blob: e28892e6b7cf22e34c21af31029aa7257102c71e (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
e=1.6*10^-19
disp(" electron charge = "+string(e)+"columns") //initializing the value of electron charge.
no=1.5*10^10
disp("no. of EHPs/cm^3 = "+string(no)+"/cm^3") //initializing value of electron hole pairs/cm^3.
n=(1/e)
disp("Number of free electrons in 1 columns ,n=(1/e))= "+string(n))//calculation
i=(1/n)
disp("Current by movement of one electrons ,i=(1/n))= "+string(i)+" Amphere ")//calculation
I=(no*i)
disp("Current by movement of (1.5*10^10) electrons ,I=(no*i))= "+string(I)+" Amphere ")//calculation