blob: 59cbb402e4dea09a6256a81082b03c65ff989269 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//pagenumber 105 example 7
volbar=0.2;//barrier voltage for germanium volt
na=3*10^20;//atoms per metre
//(1) width of depletion layer at 10 and 0.1 volt
for q=[-10 -0.1 0.1]
w=2.42*10^-6*sqrt((0.2-(q)));
disp("width of depletion layer at "+string((q))+" = "+string((w))+"metre");//for -0.1volt correction in the book
end
//(d) capacitance
for q=[-10 -0.1]
capaci=0.05*10^-9/sqrt(0.2-q);
disp("capacitance at "+string((q))+" = "+string((capaci))+"farad");
end
|