summaryrefslogtreecommitdiff
path: root/3745/CH1/EX1.25/Ex1_25.sce
diff options
context:
space:
mode:
Diffstat (limited to '3745/CH1/EX1.25/Ex1_25.sce')
-rw-r--r--3745/CH1/EX1.25/Ex1_25.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3745/CH1/EX1.25/Ex1_25.sce b/3745/CH1/EX1.25/Ex1_25.sce
new file mode 100644
index 000000000..757d58f43
--- /dev/null
+++ b/3745/CH1/EX1.25/Ex1_25.sce
@@ -0,0 +1,30 @@
+// Ex 25 Page 367
+
+clc;clear;close;
+// Given
+fs_max=1600;//kHz
+fs_min=500;//kHz
+IF=465;//kHz
+
+fr=fs_max/fs_min;//ratio
+C_ratio = fr**2;//Cs_max/Cs_min
+//Part (a)
+fo_min=IF+fs_min;//kHz
+fo_max=IF+fs_max;//kHz
+fr_o=fo_max/fo_min;//frequency ratio for oscillator
+C_ratio_o = fr_o**2;//Cs_max/Cs_min
+printf("part(a):")
+printf("\n For fo>fs, the range of fo : %.f to %.f kHz",fo_min,fo_max)
+printf("\n frequency ratio = %.2f",fr_o)
+printf("\n capacitance ratio = %.2f",C_ratio_o)
+
+//Part (b)
+fo_min=-IF+fs_min;//kHz
+fo_max=-IF+fs_max;//kHz
+fr_o=fo_max/fo_min;//frequency ratio for oscillator
+C_ratio_o = fr_o**2;//Cs_max/Cs_min
+printf("\n\n part(b):")
+printf("\n For fo>fs, the range of fo : %.f to %.f kHz",fo_min,fo_max)
+printf("\n frequency ratio = %.1f",fr_o)
+printf("\n capacitance ratio = %.1f",C_ratio_o)
+//ans wrong for part b in the book.