summaryrefslogtreecommitdiff
path: root/3809/CH17/EX17.2/EX17_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH17/EX17.2/EX17_2.sce')
-rw-r--r--3809/CH17/EX17.2/EX17_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3809/CH17/EX17.2/EX17_2.sce b/3809/CH17/EX17.2/EX17_2.sce
new file mode 100644
index 000000000..145890ab0
--- /dev/null
+++ b/3809/CH17/EX17.2/EX17_2.sce
@@ -0,0 +1,13 @@
+//Chapter 17, Example 17.2
+clc
+//Initialisation
+C=10**-6 //capacitance in farad
+RG=10**6 //resistance in ohm
+pi=3.14 //pi
+
+
+//Calculation
+fc=1/(2*pi*C*RG) //frequency in Hz
+
+//Results
+printf("Fc = %.2f Hz",fc )