diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2891/CH2/EX2.8/Ex2_8.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2891/CH2/EX2.8/Ex2_8.sce')
-rwxr-xr-x | 2891/CH2/EX2.8/Ex2_8.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2891/CH2/EX2.8/Ex2_8.sce b/2891/CH2/EX2.8/Ex2_8.sce new file mode 100755 index 000000000..6a5eb5c8a --- /dev/null +++ b/2891/CH2/EX2.8/Ex2_8.sce @@ -0,0 +1,19 @@ +// Exa 2.8
+clc;
+clear;
+close;
+// given :
+mu_0=4*%pi*10^(-7) // permeability in free space
+mu_r1=3 // region 1 relative permeability
+mu_r2=5 // region 2 relative permeability
+mu_1=mu_r1*mu_0 // region 1 permeability
+mu_2=mu_r2*mu_0 // region 2 permeability
+H1=[4 1.5 -3] // magnetic field in region 1 in A/m
+Ht1=[0 1.5 -3] // tangential component of magnetic field H1
+Hn1=[4 0 0] // normal component of magnetic field H1
+Ht2=[0 1.5 -3] // as tangential componenet of magnetic field H2=tangential component of magnetic field H1
+Hn2=(mu_1/mu_2)*Hn1 // normal component of magnetic field H2
+H2=Ht2+Hn2 // magnetic field in region 2 in A/m
+h2=norm(H2) // magnitude of the magnetic field H2 in A/m
+disp(H2,"magnetic field in region 2 in A/m:")
+disp(h2,"magnitude of magnetic field in region 2 in A/m:")
|