summaryrefslogtreecommitdiff
path: root/2582/CH3/EX3.24
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2582/CH3/EX3.24
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 '2582/CH3/EX3.24')
-rwxr-xr-x2582/CH3/EX3.24/Ex3_24.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2582/CH3/EX3.24/Ex3_24.sce b/2582/CH3/EX3.24/Ex3_24.sce
new file mode 100755
index 000000000..0c8c5afd2
--- /dev/null
+++ b/2582/CH3/EX3.24/Ex3_24.sce
@@ -0,0 +1,23 @@
+//Ex 3.24
+clc;clear;close;
+format('v',6);
+Ap=12;//dB(Pass band gain)
+G=round(10^(Ap/20));//gain(unitless)
+Ri=100;//kohm(as high input impedence required)
+R1=Ri;//kohm
+//Low pass filter design
+ALP=-1;AHP=-4;//(to satisfy R2<=100;//kohm)
+R2=-ALP*R1;//kohm
+f0=10*1000;//Hz(3-dB frequency)
+C=1/(2*%pi*f0*R2*1000)*10^9;//nF
+disp("Design values for low pass filter :");
+disp(R2,"Resistance R1=R2 in kohm : ");
+disp(C,"Capacitance C(nF): ");
+//High pass filter design
+R3=25;//kohm(Assumed)
+R4=-AHP*R3;//kohm
+f0=100;//Hz(3-dB frequency)
+C=1/(2*%pi*f0*R3*1000)*10^9;//nF
+disp("Design values for high pass filter :");
+disp(R4,R3,"Resistance R3 & R4 in kohm : ");
+disp(C,"Capacitance C(nF): ");