summaryrefslogtreecommitdiff
path: root/2459/CH21/EX21.2/Ex21_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH21/EX21.2/Ex21_2.sce')
-rw-r--r--2459/CH21/EX21.2/Ex21_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2459/CH21/EX21.2/Ex21_2.sce b/2459/CH21/EX21.2/Ex21_2.sce
new file mode 100644
index 000000000..105359a2a
--- /dev/null
+++ b/2459/CH21/EX21.2/Ex21_2.sce
@@ -0,0 +1,14 @@
+//chapter21
+//example21.2
+//page463
+
+R=10d3 // ohm
+C=0.01d-6 // F
+
+T=1.4*R*C
+f=1/T
+
+printf("time period of square wave = %.3f ms \n",T*1000)
+printf("frequency of square wave = %.3f kHz \n",f/1000)
+
+// the accurate answer for frequency is 7.143 kHz but in book it is given 7 kHz