summaryrefslogtreecommitdiff
path: root/147/CH13/EX13.20
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /147/CH13/EX13.20
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '147/CH13/EX13.20')
-rw-r--r--147/CH13/EX13.20/Example13_20.sce14
-rw-r--r--147/CH13/EX13.20/Result13_20.txt1
2 files changed, 15 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
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