summaryrefslogtreecommitdiff
path: root/3871/CH13/EX13.16
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH13/EX13.16
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH13/EX13.16')
-rw-r--r--3871/CH13/EX13.16/Ex13_16.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3871/CH13/EX13.16/Ex13_16.sce b/3871/CH13/EX13.16/Ex13_16.sce
new file mode 100644
index 000000000..eb6052971
--- /dev/null
+++ b/3871/CH13/EX13.16/Ex13_16.sce
@@ -0,0 +1,23 @@
+//=====================================================================================
+//Chapter 13 example 16
+
+clc;
+clear all;
+
+//variable declaration
+x = 0.8; //Kf2/Kf1
+y =1.2;
+
+//Pe2/Pe1 = (Kf2/Kf1)^2
+p = x^2;
+//Pe2 = p*Pe1; //
+//p1 = (Pe1-Pe2)/Pe1;
+p1 = (1-p)*100; //percentage change in hysteresis current loss
+p2 = y^2;
+p12 = (y-1)*100; //percentage change in hysteresis current loss
+p3 =(p2-1)*100; //percentage change in eddy current loss in %
+
+//result
+mprintf("percentage change in hysteresis current loss = %3.3f percentage decrease",p1);
+mprintf("\npercentage change in hysteresis current loss = %3.3f percentage increase",p12);
+mprintf("\npercentage change in eddy current loss in = %3.2f percentage increase",p3);