summaryrefslogtreecommitdiff
path: root/3769/CH10/EX10.20/Ex10_20.sce
blob: 5eb9cc7aa9c39daed6399ab31b990faf6ccd78ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//Given
H=0.28                        //G
V=0.40                        //G

//Calculation
//
A=V/H
a=atan(A)*180/3.14
R=sqrt(H**2+V**2)

//Result
printf("\n (i) Angle of dip is %0.0f  Degree",a)
printf("\n (ii) earths total magnetic field is %0.2f  G",R)