diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2825/CH4/EX4.15 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2825/CH4/EX4.15')
-rwxr-xr-x | 2825/CH4/EX4.15/Ex4_15.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2825/CH4/EX4.15/Ex4_15.sce b/2825/CH4/EX4.15/Ex4_15.sce new file mode 100755 index 000000000..0d241971e --- /dev/null +++ b/2825/CH4/EX4.15/Ex4_15.sce @@ -0,0 +1,25 @@ +//Ex4_15 Pg-246
+clc
+
+IL1=10*10^(-3)
+IL2=20*10^(-3) //IL1,IL2 range of load current in A
+Vin=20 //supply voltage in V
+Izt=6*10^(-3) //zener current in A
+Vz=15 //zener voltage in V
+
+disp("Average load current")
+IL=(IL1+IL2)/2 // Average load current
+printf("\n IL = %.0f mA \n ",IL*10^3)
+
+disp("Total current entering the circuit")
+Is=IL+Izt //current entering the circuit
+printf("\n Is = %.0f mA \n ",Is*10^3)
+
+disp("Series resistor")
+Rs=(Vin-Vz)/Is //Series resistor in ohm
+printf("\n Rs = %.0f ohm \n ",Rs)
+
+disp("Power rating of resistor")
+Vs=Vin-Vz
+P=(Vs^2)/Rs //Power rating of resistor
+printf("\n P = %.1f W \n ",P)
|