summaryrefslogtreecommitdiff
path: root/3890/CH2/EX2.5
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3890/CH2/EX2.5
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 '3890/CH2/EX2.5')
-rw-r--r--3890/CH2/EX2.5/Ex2_5.pngbin0 -> 33651 bytes
-rw-r--r--3890/CH2/EX2.5/Ex2_5.sce19
2 files changed, 19 insertions, 0 deletions
diff --git a/3890/CH2/EX2.5/Ex2_5.png b/3890/CH2/EX2.5/Ex2_5.png
new file mode 100644
index 000000000..b1e915cfb
--- /dev/null
+++ b/3890/CH2/EX2.5/Ex2_5.png
Binary files differ
diff --git a/3890/CH2/EX2.5/Ex2_5.sce b/3890/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..95b422a35
--- /dev/null
+++ b/3890/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,19 @@
+//Electric machines and power systems by Syed A Nasar
+//Publisher:TataMcgraw Hill
+//Year: 2002 ; Edition - 7
+//Example 2.5
+//Scilab Version : 6.0.0 ; OS : Windows
+
+clc;
+clear;
+
+u0=4*3.14*10^-7; //permeability of free space
+f=0.001; //flux in wb
+Am=16*10^-4; //area in m
+Bm=1.1; //flux in wb
+
+Bg=f/(Bm*Am);
+vol=Bm*Am*10^-4;
+w=(Bg^2)*(vol)/(2*u0);
+
+printf('the energy stored is %f J',w)