summaryrefslogtreecommitdiff
path: root/995/CH6/EX6.4/Ex6_4.sce
blob: c83f6fcdb62e1eabca3b2020d51682d5cbc3b025 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Ex:6.4
clc;
clear;
close;
R_l=400;
V_in=9;
V_z=5;
P_z_max=0.5;
R_s_max=R_l*((V_in/V_z)-1);
R_s_min=((V_z*V_in)-V_z^2)/P_z_max;
printf("Suitable value of resistor = %d ohm",(R_s_max+R_s_min)/2);