diff options
Diffstat (limited to '2231/CH1/EX1.18/Ex_1_18.sce')
-rwxr-xr-x | 2231/CH1/EX1.18/Ex_1_18.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2231/CH1/EX1.18/Ex_1_18.sce b/2231/CH1/EX1.18/Ex_1_18.sce new file mode 100755 index 000000000..b81d5c013 --- /dev/null +++ b/2231/CH1/EX1.18/Ex_1_18.sce @@ -0,0 +1,19 @@ +//Example 1_18
+clc;
+clear;close;
+
+//Given data
+Vgate=12;//V
+t=60*10^-6;//s
+cycle=0.3;
+P_peak=6;//W
+//part (a)
+//P_peak=Vg*Ig leads to 9*Ig^2+Ig-P_peak=0
+X=[9 1 -6];//polynomial
+Ig=roots(X);//A
+Ig=Ig(2);//A(taking +ve value)
+Vg=1+9*Ig
+Rg=(Vgate-Vg)/Ig;//ohm
+disp(Rg,"Series resistance Rg in ohm");
+PavgLoss=P_peak*cycle;//W
+disp(PavgLoss,"Average power loss in W ");
|