blob: b62b27c7243a249d487cf03d6f3799ea00a5f08f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clear
//Given
d=6.4*10**6 //m
B=0.4*10**-4 //T
u=4*%pi*10**-7
//Calculation
//
M=(B*4*%pi*d**3)/u
//Result
printf("\n earths dipole moment is %0.2f *10**23 Am**2",M*10**-23)
|