summaryrefslogtreecommitdiff
path: root/165/CH15/EX15.7/ex15_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '165/CH15/EX15.7/ex15_7.sce')
-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