summaryrefslogtreecommitdiff
path: root/3840/CH7/EX7.1/Ex7_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3840/CH7/EX7.1/Ex7_1.sce')
-rw-r--r--3840/CH7/EX7.1/Ex7_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3840/CH7/EX7.1/Ex7_1.sce b/3840/CH7/EX7.1/Ex7_1.sce
new file mode 100644
index 000000000..28938a693
--- /dev/null
+++ b/3840/CH7/EX7.1/Ex7_1.sce
@@ -0,0 +1,17 @@
+clear
+//
+//
+//
+
+//Variable declaration
+chi=-0.4*10**-5 //magnetic susceptibility
+H=5*10**5 //magnetic field intensity(amp/m)
+mew0=4*%pi*10**-7
+
+//Calculation
+B=mew0*H*(1+chi) //magnetic flux density(wb/m**2)
+M=chi*H //magnetic moment(A/m)
+
+//Result
+printf("\n magnetic flux density is %0.3f wb/m**2",B)
+printf("\n magnetic moment is %0.3f A/m",M)