summaryrefslogtreecommitdiff
path: root/3769/CH10/EX10.25/Ex10_25.sce
blob: a32507d030928e7245c7ab3abed778156b6aa056 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
M=1.6                         //Am**2
d=0.20                           //m
u=10**-7                            //N/A**2

//Calculation
H=u*2*M/(d**3)

//Result
printf("\n Horizontal component of the earths magnetic field is %0.3f  T", H)