blob: f2e8f39a8d2c717075fa909ddd05022804ff4f37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear
//Given
r=7*10**-2 //m
H=2*10**-5 //T
n=50
u=4*%pi*10**-7
//calculation
//
l=(2*r*H*tan(45*180/3.14))/u*n
//Result
printf("\n Value of current is %0.3f A",l*10**-3)
|