//Example 6.10(b) clear; clc; f0=10*10^3; Q=25; HobpdB=0; R1=10*10^3;//Assumption R2=R1;//Assumption R5=R1;//Assumption R6=R1;//Assumption R3=250*10^3;//Assumption R4=R3;//Assumption C1=1/(2*%pi*f0*R5);//Assumption C2=C1;//Assumption f0reler=0.01;//as relative error defined for f0=1% Qreler=0.01 ftf0=f0/f0reler; ftQ=(4*Q*f0)/Qreler; ft=1*10^6; //Changing the component values using Phase Compensation ch=f0/ft; C1new=C1-(C1*ch); C2new=C1new; printf("Designed Biquad Filter :") printf("\nR1=R2=R5=R6=%.2f kohms",R1*10^(-3)); printf("\nR3=R4=%.2f kohms",R4*10^(-3)); printf("\nC1=C2=%.3f nF",C1new*10^9);