summaryrefslogtreecommitdiff
path: root/2825/CH21/EX21.4/Ex21_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2825/CH21/EX21.4/Ex21_4.sce')
-rwxr-xr-x2825/CH21/EX21.4/Ex21_4.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/2825/CH21/EX21.4/Ex21_4.sce b/2825/CH21/EX21.4/Ex21_4.sce
new file mode 100755
index 000000000..4c0a1f63c
--- /dev/null
+++ b/2825/CH21/EX21.4/Ex21_4.sce
@@ -0,0 +1,9 @@
+//Ex21_4 Pg-1069
+clc
+
+R1=20000 //timing resistor R1 in ohm
+R2=R1 //timing resistor R2 in ohm
+C=0.1*10^(-6) //capacitance in farad
+
+f0=1.45/((R1+2*R2)*C) //output frequency
+printf("Output frequency = %.2f Hz",f0)