summaryrefslogtreecommitdiff
path: root/2885/CH3/EX3.11
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2885/CH3/EX3.11
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2885/CH3/EX3.11')
-rwxr-xr-x2885/CH3/EX3.11/ex3_11.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2885/CH3/EX3.11/ex3_11.sce b/2885/CH3/EX3.11/ex3_11.sce
new file mode 100755
index 000000000..1e946ba74
--- /dev/null
+++ b/2885/CH3/EX3.11/ex3_11.sce
@@ -0,0 +1,25 @@
+//Calculate output voltage and current through load and voltage across series resistor and current and power dissipated in zener diode
+clear;
+clc;
+//soltion
+//given
+Vi=110;//V //input voltage
+Rl=6*10^3;// ohm //load resistance
+Rs=2*10^3;//ohm //series resistance
+Vz=60;//V //Zener voltage
+V=Vi*Rl/(Rs+Rl);
+
+//This V>Vz therefore Zener diode is ON
+
+Vo=Vz; //output voltage
+Il=Vo/Rl; //Current through load resistance
+Vs=Vi-Vo; //Voltage drop across the series resistor
+Is=Vs/Rs //current through the series resistor
+Iz=Is-Il ///By applying kirchhoff's law
+Pz=Vz*Iz //Power dissipated accross zener diode
+
+printf("The output voltage is %.0f V\n",Vo);
+printf("The current through load resistance is %.0f mA\n",Il*1000);
+printf("Voltage across series resistor is %.0f V\n",Vs)
+printf("Current in zener diode is %.0f mA\n",Iz*1000)
+printf("Power dissipated by zener diode %.0f mW",Pz*1000);