summaryrefslogtreecommitdiff
path: root/3850/CH35/EX35.4/Ex35_4.sce
blob: 0ca384aab06c57be6d72ad63488a43860d230e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

//To Calculate the Magnetic Field at the Centre of Coil

//Example 35.4

clear;

clc;

i=1.5;//Current Carried by the Circular Coil in Amperes

n=25;//Number of turns in the coil

a=1.5*10^-2;//Radius of the Circular coil in metres

u0=4*%pi*10^-7;//Permeability of Vaccum

B=u0*i*n/(2*a);//formula for finding the magnetic field at the centre

printf("Magnetic Field at the Centre of Coil = %.2f*10^-3 T",B*10^3);