summaryrefslogtreecommitdiff
path: root/3769/CH8/EX8.8/Ex8_8.sce
blob: d4861d4e9864e8a3fce0901cf459a6d7e552300c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Given
u=4*3.14*10**-7                     //T/A m
n=20
I=12                                  //A
r=0.1                                 //m

//Calculation
B=u*n*I/(2*r)

//Result
printf("\n Magnetic field at the centre of coil is %0.1f  *10**-3 T",B*10**3)