blob: 528e141c0401b0dee9a80fb435fc28b06720625d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clear
//Given
t=6.70
n=10.0
I=7.5*10**-6 //Kgm**2
M=6.7*10**-2 //Am**2
//Calculation
T=t/n
B=(4*%pi**2*I)/(M*T**2)
//Result
printf("\n Magnitude of the magnetic field is %0.2f T",B)
|