diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3739/CH1/EX1.1/EX1_1.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3739/CH1/EX1.1/EX1_1.sce')
-rw-r--r-- | 3739/CH1/EX1.1/EX1_1.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/3739/CH1/EX1.1/EX1_1.sce b/3739/CH1/EX1.1/EX1_1.sce new file mode 100644 index 000000000..63aa53710 --- /dev/null +++ b/3739/CH1/EX1.1/EX1_1.sce @@ -0,0 +1,29 @@ +//Chapter 1, Example 1.1
+clc
+//Initialisation
+fo=8387.5; //in MHz
+
+//Calculation
+//defining a function for 6 MHZ channels with 14 MHz separation
+deff('[fn]=F(n,fo)','fn=fo-108.5+(14*n)');
+deff('[fn]=F1(n,fo)','fn=fo+10.5+(14*n)');
+
+//defining a function for 12 MHZ channels with 7 MHz separation
+deff('[fn]=F2(n,fo)','fn=fo-108.5+(7*n)');
+deff('[fn]=F3(n,fo)','fn=fo+17.5+(7*n)');
+
+//Result
+printf("(1) 6-RF channels with 14 MHz separation")
+printf("\n f1 = %d",F(1,fo))
+printf("\n f11 = %d",F1(1,fo))
+printf("\n f2 = %d",F(2,fo))
+printf("\n f21 = %d",F1(2,fo))
+printf("\n f3 = %d",F(3,fo))
+printf("\n f31 = %d",F1(3,fo))
+printf("\n\n(2) 12-RF channels with 7 MHz separation")
+printf("\n f1 = %d",F2(1,fo))
+printf("\n f11 = %d",F3(1,fo))
+printf("\n f2 = %d",F2(2,fo))
+printf("\n f21 = %d",F3(2,fo))
+printf("\n f3 = %d",F2(3,fo)) //The answer provided in the textbook is wrong
+printf("\n f31 = %d",F3(3,fo)) //The answer provided in the textbook is wrong
|