summaryrefslogtreecommitdiff
path: root/3850/CH36/EX36.5/Ex36_5.sce
blob: f050449a70750846ab59c97ba9d83bb555c79bc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);