summaryrefslogtreecommitdiff
path: root/165/CH15/EX15.7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /165/CH15/EX15.7
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '165/CH15/EX15.7')
-rw-r--r--165/CH15/EX15.7/ex15_7.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/165/CH15/EX15.7/ex15_7.sce b/165/CH15/EX15.7/ex15_7.sce
new file mode 100644
index 000000000..c0418077d
--- /dev/null
+++ b/165/CH15/EX15.7/ex15_7.sce
@@ -0,0 +1,24 @@
+//Example 15.7
+clc;
+
+fh=100; //in Hz
+fl=1000; //in Hz
+C=0.01*10^-6; //Assumed
+R1=10000; //Assumed
+Rf=R1;
+R2=R1;
+R3=R1;
+R4=R1;
+
+//For a LPF
+R=invr(2*%pi*fh*C);
+printf('\nValue of Resistor R for a LPF = %d k ohm\n',R/1000)
+
+//For a HPF
+R=invr(2*%pi*fl*C);
+printf('\nValue of Resistor R for a HPF = %.1f k ohm\n',R/1000)
+
+printf('\nValue of Resistor R1 & Rf = %.1f k ohm\n',R1/1000)
+
+Rom=invr(invr(R2)+invr(R3)+invr(R4));
+printf('\nValue of Resistor Rom = %.1f k ohm\n',Rom/1000) \ No newline at end of file