summaryrefslogtreecommitdiff
path: root/608/CH42/EX42.02/42_02.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH42/EX42.02/42_02.sce')
-rwxr-xr-x608/CH42/EX42.02/42_02.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/608/CH42/EX42.02/42_02.sce b/608/CH42/EX42.02/42_02.sce
new file mode 100755
index 000000000..17d7090d2
--- /dev/null
+++ b/608/CH42/EX42.02/42_02.sce
@@ -0,0 +1,15 @@
+//Problem 42.02: A filter section is to have a characteristic impedance at zero frequency of 600 ohm and a cut-off frequency at 5 MHz. Design (a) a low-pass T section filter, and (b) a low-pass pi section filter to meet these requirements.
+
+//initializing the variables:
+R0 = 600; // in ohm
+fc = 5E6; // in Hz
+
+//calculation:
+//capacitance
+C = 1/(%pi*R0*fc)
+//inductance
+L = R0/(%pi*fc)
+
+printf("\n\n Result \n\n")
+printf("\n A low-pass T section filter capcitance is %.2E farad and inductance is%.2E Henry",C, L/2)
+printf("\n A low-pass pi section filter capcitance is %.2E farad and inductance is%.2E Henry",C/2, L) \ No newline at end of file