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 /2231/CH1/EX1.18/Ex_1_18.sce | |
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 '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 ");
|