summaryrefslogtreecommitdiff
path: root/3769/CH10/EX10.28/Ex10_28.sce
blob: e592dab25356a0384ba72c9ab4e8436be029ff69 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
K=0.095                           //A
n=50
r=10*10**-2                        //m
u=4*%pi*10**-7
//Calculation
H=K*u*n/(2.0*r)

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