summaryrefslogtreecommitdiff
path: root/929/CH3/EX3.4.a/Example3_4_a.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.4.a/Example3_4_a.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.4.a/Example3_4_a.sce')
-rwxr-xr-x929/CH3/EX3.4.a/Example3_4_a.sce35
1 files changed, 35 insertions, 0 deletions
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