summaryrefslogtreecommitdiff
path: root/3871/CH13/EX13.11/Ex13_11.sce
blob: 65e751633aa608294d2ff0509f5a26a35160bc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//=====================================================================================
//Chapter 13 example 13

clc;clear all;

//variable declaration
Q    = 1000;     //Charge passed through galvanometer in uC
theta1 = 60;
d      = 10;     //defelction in mm
r     = 1000;    //m=circular scale 

//calculations
theta2  = %pi/(3)   //conversion of degrees to radians
K   = Q/(theta2);     //galvanometer constant in uC/radian
theta  = d/(2*r);     //angle turned through by reflected ray for aswing of 10 mm
Q1     = K*theta;         //charge for a swing of 0.005 radian in uC

//result
mprintf("charge for a swing of 0.005 radian = %3.2f uC",Q1);