summaryrefslogtreecommitdiff
path: root/2498/CH2/EX2.2/ex2_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2498/CH2/EX2.2/ex2_2.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2498/CH2/EX2.2/ex2_2.sce')
-rwxr-xr-x2498/CH2/EX2.2/ex2_2.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/2498/CH2/EX2.2/ex2_2.sce b/2498/CH2/EX2.2/ex2_2.sce
new file mode 100755
index 000000000..17ce19975
--- /dev/null
+++ b/2498/CH2/EX2.2/ex2_2.sce
@@ -0,0 +1,28 @@
+// Exa 2.2
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+Rf = 10;// in ohm
+R_L = 1;// in k ohm
+R_L = R_L * 10^3;// in ohm
+Vi = 230;// in V
+Vm = Vi*sqrt(2);
+//I_DC = Im/%pi;
+I_DC = Vm/((R_L+Rf)*%pi);// in A
+Irms = Vm/((R_L+Rf)*2);// in A
+// The input ac power
+P_iAC = (Irms^2)*(Rf+R_L);// in W
+disp(P_iAC,"The input ac power in W is");
+// The output ac power
+P_ODC = (I_DC^2)*R_L;// in W
+disp(P_ODC,"The output ac power in W is");
+// The efficiency
+Eta = (P_ODC/P_iAC)*100;// in %
+disp(Eta,"The efficiency in % is");
+// The percentage regulation
+R = (Rf/R_L)*100;// in %
+disp(R,"The percentage regulation in % is");
+
+// Note: The calculated value of input a.c. power in the book is wrong.