blob: ab715c7eb85cac286b7291cbe9ee5383ddcefd6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear
//Given
M=4.8*10**-2 //J/T
a=30 //degree
B=3*10**-2 //t
//Calculation
//
t=M*B*sin(a*3.14/180.0)
//Result
printf("\n Torque acting on the needle is %0.1f *10**-4 Nm",t*10**4)
|