summaryrefslogtreecommitdiff
path: root/3769/CH10/EX10.26/Ex10_26.sce
blob: 8f45fed5d2563ff3eb8b9269d35f463b512723d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
l=0.05                          //m
d=0.12                          //m
H=0.34*10**-4                          //T

//Calculation
//
u=4*%pi*10**-7
M=(4*%pi*H*(d**2+l**2)**1.5)/u

//Result
printf("\n Magnetic moment of the magnet is %0.3f  J/T",M)