blob: 1034bb52e8d9117e93c767a888c873ea72be7959 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//Given
B=0.2 //T
a=30 //degree
t=0.06 //Nm
//Calculation
//
M=t/(B*sin(a*3.14/180.0))
U=M*B*cos(1*3.14/180.0)
//Result
printf("\n (i) Magnetic moment of the magnet is %0.1f Am**2",M)
printf("\n (ii) Orientation of the magnet is %0.0f ",U)
|