summaryrefslogtreecommitdiff
path: root/2219/CH5/EX5.3
diff options
context:
space:
mode:
Diffstat (limited to '2219/CH5/EX5.3')
-rwxr-xr-x2219/CH5/EX5.3/Ex5_3.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2219/CH5/EX5.3/Ex5_3.sce b/2219/CH5/EX5.3/Ex5_3.sce
new file mode 100755
index 000000000..258b03cd2
--- /dev/null
+++ b/2219/CH5/EX5.3/Ex5_3.sce
@@ -0,0 +1,26 @@
+//chapter 5 example 3
+//=============================================================================
+clc;
+clear;
+//Given Data
+//let l = dVr/Vr ; f = df/f ; Vr/f = R
+l = 5;//percentage change in repeller voltage
+f = 1;//percentage change in operating frequency
+R = 1;//ratio of repeller voltage to operating frequency
+NR = 1.5;//new ratio of repeller voltage to operating frequency in volts/MHz
+e = 1.6*10^-19;//charge of electron
+m = 9.1*10^-31;//mass of electron in kg
+
+//Calculations
+
+//dVr/df = ((2*pi*s)/((2*pi*n)-pi/2))*sqrt(8*m*Va/e));
+//((df/f)/(dVr/Vr)) = (Vr/f)*((2*pi*n)-pi/2)/(2*pi*s)*sqrt(e/(8*m*Va));
+//((df/f)/(dVr/Vr)) = K*(Vr/f);
+//where K = (((2*pi*n)-pi/2)/(2*pi*s))*sqrt(e/(8*m*Va))
+K = (f/l)*(1/R)
+PCF = NR*K*l//percentage change in frequency when new ratio (Vr/f)=1.5
+
+//Output
+mprintf('Percentage Change in frequency is %3.2f percent',PCF);
+
+//=============================================================================