diff options
Diffstat (limited to '2825/CH4/EX4.15/Ex4_15.sce')
-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)
|