summaryrefslogtreecommitdiff
path: root/3850/CH36/EX36.7/Ex36_7.sce
blob: 82d92590e514e52f08e5599b5b81221e02dff45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

//To Calculate the Value of Horizontal Component of Earth's Magnetic Field

//Example 36.7

clear;

clc;

n=66;//Number of turns in Tangent Galvanometer

i=0.1;//Current passing through Galvanometer in Amperes

d=22*10^-2;//Diameter of coil in metres

theta=%pi/4;//Defelction in Galvanometer in radians

u0=4*%pi*10^-7;//permeability of vaccum

Bh=(u0*n*i)/(d*tan(theta));//Horizontal component of Earths Magnetic Field

printf("Horizontal component of Earth Magnetic Field = %.1f*10^-5 T",Bh*10^5);