summaryrefslogtreecommitdiff
path: root/3665/CH11/EX11.5/Ex11_5.sce
blob: 7ce3e122a350c510b96ebb7fa722685a01a7b6ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc//
//
//

//Variable declaration
r=5*10^-2      //radius(m)
I=500*10^-3;    //current(A)

//Calculation
A=2*%pi*r^2;
mew_m=I*A;     //magnetic moment(Am^2)

//Result
printf("\n magnetic moment is %0.3f *10^-3 Am^2",mew_m*10^3)
printf("\n answer given in the book varies due to rounding off errors")