summaryrefslogtreecommitdiff
path: root/1409/CH8/EX8.3/8_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '1409/CH8/EX8.3/8_3.sce')
-rw-r--r--1409/CH8/EX8.3/8_3.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/1409/CH8/EX8.3/8_3.sce b/1409/CH8/EX8.3/8_3.sce
new file mode 100644
index 000000000..300de1acf
--- /dev/null
+++ b/1409/CH8/EX8.3/8_3.sce
@@ -0,0 +1,26 @@
+clc;
+//page no 8-9
+//Example 8.3
+disp("at 1000kHz");
+Q=80;
+fi=455*10^3;//in Hz
+fs=1000*10^3;//in Hz
+fsi=[fs+(2*fi)]*10^(-3);
+disp(+'kHz',fsi,'fsi=');
+rho=[(fsi*10^3)/fs]-[fs/(fsi*10^3)];
+disp(rho,'rho=');
+//Rounding rho to 3 digits
+rho1=1.386;
+alpha=sqrt(1+(Q^2*rho1^2));
+disp(alpha,'Rejection ratio is');
+disp("at 50MHz");
+fs2=50*10^6;
+fsi2=(fs2+2*fi)*10^(-6);
+disp(+'MHz',fsi2,'fsi=');
+rho2=[(fsi2*10^6)/fs2]-[fs2/(fsi2*10^6)];
+disp(rho2,'rho=');
+//rounding rho2 to 0.036
+rho3=0.036;
+alpha2=sqrt(1+(Q^2*rho3^2));
+disp(alpha2,'Rejection ratio is');
+