summaryrefslogtreecommitdiff
path: root/3769/CH9/EX9.27/Ex9_27.sce
blob: becc30d26f89aedf24adcc18efb6a25e7c67323f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//Given
A=10**-3                     //m**
n=10
I=2                        //A
B=0.1                     //T

//Calculation
//
t=n*I*A*B*cos(0)
t1=n*I*A*B*cos(60*3.14/180.0)

//Result
printf("\n (i) Torque when magnetic field is parallel to the field %0.0f  *10**-3 Nm",t*10**3)
printf("\n (ii) Torque when magnetic field is perpendicular to the field is zero")
printf("\n (iii) Torque when magnetic field is 60 degree to the field is %0.1f  *10**-3 Nm",t1*10**3)