summaryrefslogtreecommitdiff
path: root/226/CH19/EX19.27/example27_sce.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /226/CH19/EX19.27/example27_sce.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '226/CH19/EX19.27/example27_sce.sce')
-rwxr-xr-x226/CH19/EX19.27/example27_sce.sce26
1 files changed, 14 insertions, 12 deletions
diff --git a/226/CH19/EX19.27/example27_sce.sce b/226/CH19/EX19.27/example27_sce.sce
index 6a1ddf83d..8f3aad995 100755
--- a/226/CH19/EX19.27/example27_sce.sce
+++ b/226/CH19/EX19.27/example27_sce.sce
@@ -1,13 +1,15 @@
-//chapter 19
-//example 19.27
-//page 883
-printf("\n")
-printf("given")
-Rw=.1;f=1*10^6;Lp=19.5*10^-6;Rl=1.2*10^3;Vcc=30;Idc=12.3*10^-3;
-QL=(2*3.14*f*Lp)/Rw
-Qp=Rl/(2*3.14*f*Lp)
-B=f/Qp
-Il=(.707*Vp)/(2*3.14*f*Lp)
-Pl=(Il)^2 *Rw
-Pi=(Vcc*Idc)+Pl
+//chapter 19
+//example 19.27
+//page 883
+printf("\n")
+printf("given")
+Rw=.1;f=1*10^6;Lp=19.5*10^-6;Rl=1.2*10^3;Vcc=30;Idc=12.3*10^-3;Vce=0.5;
+Vp=Vcc-Vce;
+Po=((Vp)^2) /(2*Rl);
+QL=(2*3.14*f*Lp)/Rw
+Qp=Rl/(2*3.14*f*Lp)
+B=f/Qp
+Il=(.707*Vp)/(2*3.14*f*Lp)
+Pl=(Il)^2 *Rw
+Pi=(Vcc*Idc)+Pl
n=(Po/Pi)*100 \ No newline at end of file