From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 147/CH13/EX13.20/Example13_20.sce | 14 ++++++++++++++ 147/CH13/EX13.20/Result13_20.txt | 1 + 2 files changed, 15 insertions(+) create mode 100644 147/CH13/EX13.20/Example13_20.sce create mode 100644 147/CH13/EX13.20/Result13_20.txt (limited to '147/CH13/EX13.20') 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 diff --git a/147/CH13/EX13.20/Result13_20.txt b/147/CH13/EX13.20/Result13_20.txt new file mode 100644 index 000000000..ddf768a2f --- /dev/null +++ b/147/CH13/EX13.20/Result13_20.txt @@ -0,0 +1 @@ +We have 50 % saving in copper \ No newline at end of file -- cgit