summaryrefslogtreecommitdiff
path: root/3850/CH36/EX36.5/Ex36_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH36/EX36.5/Ex36_5.sce')
-rw-r--r--3850/CH36/EX36.5/Ex36_5.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3850/CH36/EX36.5/Ex36_5.sce b/3850/CH36/EX36.5/Ex36_5.sce
new file mode 100644
index 000000000..f050449a7
--- /dev/null
+++ b/3850/CH36/EX36.5/Ex36_5.sce
@@ -0,0 +1,16 @@
+
+//To Calculate the Magnitude of the Earth's Magnetic Field
+
+//Example 36.5
+
+clear;
+
+clc;
+
+Bh=3.6*10^-5;//Horizontal component of Earth's Magnetic Field in Tesla
+
+theta=%pi/3;//Dip Angle in radians
+
+B=Bh/cos(theta);//Resultant Magnetic Field
+
+printf("Magnitude of the Earth magnetic field = %.1f*10^-5 T",B*10^5);