diff options
Diffstat (limited to '147/CH13/EX13.20/Example13_20.sce')
-rw-r--r-- | 147/CH13/EX13.20/Example13_20.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/147/CH13/EX13.20/Example13_20.sce b/147/CH13/EX13.20/Example13_20.sce new file mode 100644 index 000000000..d79f36a79 --- /dev/null +++ b/147/CH13/EX13.20/Example13_20.sce @@ -0,0 +1,14 @@ +//Input voltage Vin, Output voltage Vout, Output current Iout
+close();
+clear;
+clc;
+Vin = 220;//V
+V1 = Vin;
+Vout = 110;
+V2 = Vout;
+Iout = 10;//A
+I2 = Iout;
+a = V1/V2;
+//weight_auto/weight_trans = 'weightr'
+weightr = 1 - (2/a)/2;//since N1/N2 = I2/I1 = a
+mprintf('We have %0.0f %% saving in copper',weightr*100);
\ No newline at end of file |