From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2642/CH2/EX2.1/Ex2_1.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 2642/CH2/EX2.1/Ex2_1.sce (limited to '2642/CH2/EX2.1') 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); + + -- cgit