summaryrefslogtreecommitdiff
path: root/2642/CH2/EX2.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2642/CH2/EX2.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2642/CH2/EX2.1')
-rwxr-xr-x2642/CH2/EX2.1/Ex2_1.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2642/CH2/EX2.1/Ex2_1.sce b/2642/CH2/EX2.1/Ex2_1.sce
new file mode 100755
index 000000000..92c8673af
--- /dev/null
+++ b/2642/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,25 @@
+// FUNDAMENTALS OF ELECTICAL MACHINES
+// M.A.SALAM
+// NAROSA PUBLISHING HOUSE
+// SECOND EDITION
+
+// Chapter 2 : BESICS OF MAGNETIC CIRCUITS
+// Example : 2.1
+
+clc;clear; // clears the console and command history
+
+// Given data
+l = 4 // lenght in m
+w = 2 // width in m
+B = 0.12 // magnetis flux density in tesla
+
+// caclulations
+A = l*w // area in m^2
+flux = B*A // magnetic flux in Wb
+
+
+// display the result
+disp("Example 2.1 solution");
+printf(" \n Magnetic flux \n flux = %.2f Wb \n", flux);
+
+