summaryrefslogtreecommitdiff
path: root/3809/CH8/EX8.5/EX8_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH8/EX8.5/EX8_5.sce')
-rw-r--r--3809/CH8/EX8.5/EX8_5.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3809/CH8/EX8.5/EX8_5.sce b/3809/CH8/EX8.5/EX8_5.sce
new file mode 100644
index 000000000..f843a3a1c
--- /dev/null
+++ b/3809/CH8/EX8.5/EX8_5.sce
@@ -0,0 +1,16 @@
+//Chapter 8, Example 8.5
+clc
+//Initialisation
+c=10*10**-6 //capacitance in farad
+r=10**3 //resistance in ohm
+pi=3.14 //pi
+
+//Calculation
+t=c*r //time constant
+wc=1/t //angular frequency
+f=wc/(2*pi) //cyclic frequency
+
+//Result
+printf("Time Constant, T = %.2f s\n",t)
+printf("Angular Cut-off Frequency, F = %d rad/s \n",wc)
+printf("Cyclic Cut-off Frequency, Fc = %.1f Hz\n",f)