summaryrefslogtreecommitdiff
path: root/929/CH3/EX3.14/Example3_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /929/CH3/EX3.14/Example3_14.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '929/CH3/EX3.14/Example3_14.sce')
-rwxr-xr-x929/CH3/EX3.14/Example3_14.sce45
1 files changed, 45 insertions, 0 deletions
diff --git a/929/CH3/EX3.14/Example3_14.sce b/929/CH3/EX3.14/Example3_14.sce
new file mode 100755
index 000000000..e0bf909e4
--- /dev/null
+++ b/929/CH3/EX3.14/Example3_14.sce
@@ -0,0 +1,45 @@
+//Example 3.14
+
+clear;
+
+clc;
+
+C=100*10^(-9);//Assuming C=100 nF
+
+C1=C;
+
+C2=2*C;
+
+f0=60;
+
+BW=5;
+
+R=1/(2*%pi*f0*C);
+
+R1=R;
+
+R2=R/2;
+
+Q=f0/BW;
+
+K=(4-(1/Q))/2;
+
+RA=10*10^3;
+
+RB=(K-1)*RA;
+
+printf("Designed Second Order Notch Filter :")
+
+printf("\nR1=%.2f kohms",R1*10^(-3));
+
+printf("\nR2=%.2f kohms",R2*10^(-3));
+
+printf("\nRA=%.2f kohms",RA*10^(-3));
+
+printf("\nRB=%.2f kohms",RB*10^(-3));
+
+printf("\nC1=%.2f nF",C1*10^9);
+
+printf("\nC2=%.2f nF",C2*10^9);
+
+printf("\n\nLow and High Frequency Gain=%.2f V/V",K); \ No newline at end of file