summaryrefslogtreecommitdiff
path: root/3041/CH8/EX8.7/Ex8_7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /3041/CH8/EX8.7/Ex8_7.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 '3041/CH8/EX8.7/Ex8_7.sce')
-rwxr-xr-x3041/CH8/EX8.7/Ex8_7.sce4
1 files changed, 2 insertions, 2 deletions
diff --git a/3041/CH8/EX8.7/Ex8_7.sce b/3041/CH8/EX8.7/Ex8_7.sce
index 8f4909ff8..9524775e6 100755
--- a/3041/CH8/EX8.7/Ex8_7.sce
+++ b/3041/CH8/EX8.7/Ex8_7.sce
@@ -5,7 +5,7 @@ V=240 //dc source(V)
d=17/50. //duty cycle
d1=0.6 //duty cycle
eta1=0.8 //efficiency
-
+Vdc = 12
//Calculations
P=VL*I //average load power(W)
Isav=(1*d)/2 //average supply current(A)
@@ -18,4 +18,4 @@ Po=Il*Vdc //power output(W)
//Results
printf ("regulator efficiency is %.1f %%",eta)
printf ("average supply current is %.1f A",Il)
-printf ("power output is %.1f W",Po)
+printf ("power output is %.1f W",Po) \ No newline at end of file