From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 929/CH3/EX3.18/Example3_18.sce | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 929/CH3/EX3.18/Example3_18.sce (limited to '929/CH3/EX3.18') diff --git a/929/CH3/EX3.18/Example3_18.sce b/929/CH3/EX3.18/Example3_18.sce new file mode 100755 index 000000000..d227c4ef1 --- /dev/null +++ b/929/CH3/EX3.18/Example3_18.sce @@ -0,0 +1,43 @@ +//Example 3.18 + +clear; + +clc; + +C=10*10^(-9);//Assuming C=10 nF + +C1=C; + +C2=C; + +f0=1*10^3; + +BW=10; + +R=(1/(2*%pi*f0*C))-(0.12*10^3); + +Q=f0/BW; + +R1=1*10^3;//Assuming R1=1 kohms + +R2=((3*Q)-1)*R1; + +R3=R; + +R4=R; + +R5=R; + +Hobp=Q; + +printf("Designed State-Variable Filter for Bandpass Response :"); + +printf("\nR1=%.2f kohms",R1*10^(-3)); + +printf("\nR2=%.2f kohms",R2*10^(-3));//Answer in textbook is wrong + +printf("\nR3=R4=R5=%.2f kohms",R*10^(-3)); + +printf("\nC1=C2=%.2f nF",C*10^9); + +printf("\n\nResonance Gain=%.2f V/V",Hobp); \ No newline at end of file -- cgit