summaryrefslogtreecommitdiff
path: root/3669/CH7/EX7.1/1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3669/CH7/EX7.1/1.sce')
-rw-r--r--3669/CH7/EX7.1/1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3669/CH7/EX7.1/1.sce b/3669/CH7/EX7.1/1.sce
new file mode 100644
index 000000000..11bad9ea7
--- /dev/null
+++ b/3669/CH7/EX7.1/1.sce
@@ -0,0 +1,13 @@
+
+//Variable declaration
+chi=-0.4*10**-5; //magnetic susceptibility
+H=5*10**5; //magnetic field(A/m)
+mew0=4*%pi*10**-7;
+
+//Calculation
+B=mew0*H*(1+chi); //flux density(Wb/m**2)
+M=chi*H; //magnetic moment(A/m)
+
+//Result
+printf('flux density is %0.3f Wb/m**2 \n',(B))
+printf('magnetic moment is %0.3f A/m \n',M) \ No newline at end of file