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.4.a/Example3_4_a.sce | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 929/CH3/EX3.4.a/Example3_4_a.sce (limited to '929/CH3/EX3.4.a/Example3_4_a.sce') diff --git a/929/CH3/EX3.4.a/Example3_4_a.sce b/929/CH3/EX3.4.a/Example3_4_a.sce new file mode 100755 index 000000000..119aafb95 --- /dev/null +++ b/929/CH3/EX3.4.a/Example3_4_a.sce @@ -0,0 +1,35 @@ +//Example 3.4(a) + +clear; + +clc; + +dcgaindB=20;//Gain in dB + +dcgain=10^(20/20); + +f0=10^3; + +//We need R2=dcgain*R1; + +R1approx=20*10^(3); + +R2approx=dcgain*R1approx; + +Capprox=1/(2*%pi*f0*R2approx); + +n=(Capprox*10^9); + +C=Capprox/n; + +R2=(R2approx*n)-1154.9431; + +R1=R2/dcgain; + +printf("Components for achieving the mentioned requirements :"); + +printf("\nR1=%.1f kohms",R1*10^(-3)); + +printf("\nR2=%.f kohms",R2*10^(-3)); + +printf("\nC=%.f nF",C*10^9); \ No newline at end of file -- cgit