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 --- 275/CH2/EX2.2.58/Ch2_2_58.sce | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 275/CH2/EX2.2.58/Ch2_2_58.sce (limited to '275/CH2/EX2.2.58/Ch2_2_58.sce') diff --git a/275/CH2/EX2.2.58/Ch2_2_58.sce b/275/CH2/EX2.2.58/Ch2_2_58.sce new file mode 100755 index 000000000..3c4b2986f --- /dev/null +++ b/275/CH2/EX2.2.58/Ch2_2_58.sce @@ -0,0 +1,31 @@ +clc +disp("Example 2.58") +printf("\n") +disp("Design a voltage regulator using zener diode to meet following specification") +printf("Given\n") +printf("1 Resistance are in ohms \n 2 Current are in ampere \n 3 voltage sources are in volt\n") +//unregulated dc input voltage +Vimin=20 +Vimax=30 +//regulated dc output voltage +Vo=10 +//minimum zener current +Izmin=2*10^-3 +//maximum zener current +Izmax=100*10^-3 +//load current +ILmin=0 +ILmax=25*10^-3 +//load resistance +RL=Vo/ILmax +//maximum Resistance +Rmax=(Vimin-Vo)/(Izmin+ILmax) +//minimum resistance +Rmin=(Vimax-Vo)/(Izmax+ILmin) +//Required resistance +R=(Rmax+Rmin)/2 +printf("minimum resistance %d ohm \n",Rmin) +printf("maximum resistance %d ohm \n",Rmax) +printf("required resistance %d ohm \n",R) +printf("load resistance %d ohm \n",RLmin) + -- cgit