From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3636/CH6/EX6.6/Ex6_6.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 3636/CH6/EX6.6/Ex6_6.sce (limited to '3636/CH6/EX6.6/Ex6_6.sce') diff --git a/3636/CH6/EX6.6/Ex6_6.sce b/3636/CH6/EX6.6/Ex6_6.sce new file mode 100644 index 000000000..51a5b17af --- /dev/null +++ b/3636/CH6/EX6.6/Ex6_6.sce @@ -0,0 +1,25 @@ +clc; +clear; +Jn=20 //in A/cm^2 +Jp=5 //in A/cm^2 +Va=0.65 //in V +Dn=25 //in cm^2/s +Dp=10 ///in cm^2/s +tau_n0=5*10^-7 //in s +tau_p0=5*10^-7 //in s +epsilon_r=11.8 //in F/cm +epsilon_0=8.85*10^-14 //in F/cm +e=1.6*10^-19 //in eV +ni=1.5*10^10 //in cm^-3 +Const=0.0259 //constant for kT/e in V + +//Calculation +Lp=sqrt(Dp*tau_p0) //in cm +pn0=(Jp*Lp)/(e*Dp*(exp(Va/Const)-1)) //law of mass action in cm^-3 +Nd=(ni^2/pn0) +Ln=sqrt(Dn*tau_n0) //in cm +np0=(Jn*Ln)/(e*Dn*(exp((Va/Const))-1)) //in cm^-3 +Na=ni^2/np0 + +mprintf("Nd= %1.2e cm^-3\n",Nd) //The answers vary due to round off error +mprintf("Na= %1.2e cm^-3",Na) -- cgit