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 --- 3507/CH9/EX9.2/Ex9_2.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 3507/CH9/EX9.2/Ex9_2.sce (limited to '3507/CH9/EX9.2/Ex9_2.sce') diff --git a/3507/CH9/EX9.2/Ex9_2.sce b/3507/CH9/EX9.2/Ex9_2.sce new file mode 100644 index 000000000..99a44add5 --- /dev/null +++ b/3507/CH9/EX9.2/Ex9_2.sce @@ -0,0 +1,23 @@ +//chapter9 +//example9.2 +//page145 + +Vi_p=20 // V +rf=10 // ohm +Rl=500 // ohm +Vo=0.7 // V +Vin=20 // V + +// peak current through diode will occur when Vin=Vf so +Vf=Vin +// since Vf=Vo+If_peak(rf+Rl) making If_peak as subject we get +If_peak1=(Vf-Vo)/(rf+Rl) // in ampere +Vout_peak1=If_peak1*Rl + +// for ideal diode, Vo=0 and rf=0 so +// Vf=If_peak*Rl so we get +If_peak2=Vf/Rl // in ampere +Vout_peak2=If_peak2*Rl + +printf("peak current through given diode = %.3f mA and peak output voltage = %.3f V \n",If_peak1*1000,Vout_peak1) +printf("peak current through ideal diode = %.3f mA and peak output voltage = %.3f V \n",If_peak2*1000,Vout_peak2) -- cgit