diff options
Diffstat (limited to '3809/CH8/EX8.7/EX8_7.sce')
-rw-r--r-- | 3809/CH8/EX8.7/EX8_7.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3809/CH8/EX8.7/EX8_7.sce b/3809/CH8/EX8.7/EX8_7.sce new file mode 100644 index 000000000..16a45e5c4 --- /dev/null +++ b/3809/CH8/EX8.7/EX8_7.sce @@ -0,0 +1,16 @@ +//Chapter 8, Example 8.7
+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)
|