From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2102/CH3/EX3.4/exa_3_4.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 2102/CH3/EX3.4/exa_3_4.sce (limited to '2102/CH3/EX3.4/exa_3_4.sce') diff --git a/2102/CH3/EX3.4/exa_3_4.sce b/2102/CH3/EX3.4/exa_3_4.sce new file mode 100755 index 000000000..2cdc13539 --- /dev/null +++ b/2102/CH3/EX3.4/exa_3_4.sce @@ -0,0 +1,22 @@ +// Exa 3.4 +clc; +clear; +close; +// Given data +Vd_1= 0.3;// in V +V_T= 25;// in mV +V_T= V_T*10^-3;// in V +// when Id_1= 1 mA +Id_1= 1;// in mA +Id_1=Id_1*10^-3;// in A +// Formula Id_1= Io*[%e^(Vd/(n*V_T))-1]= Io*[e^(Vd/(n*V_T))] +// Id_1= Io*[e^(Vd_1/(n*V_T))] (i) + +// when Id_2= 200 mA +Id_2= 200;// in mA +Id_2=Id_2*10^-3;// in A +Vd_2= 0.45;// in V +// Id_2= Io*[e^(Vd_2/(n*V_T))] (ii) +// Dividing (ii) by (i), we have +n= (Vd_2-Vd_1)/(log(Id_2/Id_1)*V_T); +disp(n,"The value of the constant for the diode is ") -- cgit