summaryrefslogtreecommitdiff
path: root/1409/CH8/EX8.23.1/8_23_i.sce
diff options
context:
space:
mode:
Diffstat (limited to '1409/CH8/EX8.23.1/8_23_i.sce')
-rw-r--r--1409/CH8/EX8.23.1/8_23_i.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/1409/CH8/EX8.23.1/8_23_i.sce b/1409/CH8/EX8.23.1/8_23_i.sce
new file mode 100644
index 000000000..b1ffbfb9f
--- /dev/null
+++ b/1409/CH8/EX8.23.1/8_23_i.sce
@@ -0,0 +1,25 @@
+clc;
+//page no 8-62
+//Example 8.23
+Q=125;
+fi=465;//in kHz
+disp("Image frequencies and rejection at 1MHz");
+fs=1000;//in kHz
+fsi=[fs+(2*fi)]*10^-3;
+disp(+'MHz',fsi,'Image frequency is');
+rho=(fsi/(fs*10^-3))-((fs*10^-3)/fsi);
+disp(rho,'rho=');
+alpha=sqrt(1+(Q^2*rho^2));
+//rounding alpha to 176.48
+alpha1=176.48;
+alphadB=20*log10(alpha1);
+disp(+'dB',alphadB,'Image frequency rejection ratio is');
+disp("Image frequencies and rejection at 30MHz")
+fs1=30;//in MHz
+fsi1=fs1+(2*fi*10^-3);
+disp(+'MHz',fsi1,'Image frequency is');
+rho1=(fsi1/fs1)-(fs1/fsi1);
+disp(rho1,'rho=');
+alpha2=sqrt(1+(Q^2*rho1^2));
+alphadB1=20*log10(alpha2);
+disp(+'dB',alphadB1,'Image frequency rejection ratio is');