summaryrefslogtreecommitdiff
path: root/3754/CH6/EX6.2/6_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH6/EX6.2/6_2.sce')
-rw-r--r--3754/CH6/EX6.2/6_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3754/CH6/EX6.2/6_2.sce b/3754/CH6/EX6.2/6_2.sce
new file mode 100644
index 000000000..c9e5c0756
--- /dev/null
+++ b/3754/CH6/EX6.2/6_2.sce
@@ -0,0 +1,14 @@
+clear//
+
+//Variables
+
+t = 0.01 //Time period of positive half cycle (in seconds)
+
+//Calculation
+
+t1 = 0.01 //Time period of negative half cycle (in seconds)
+T = t + t1 //Time period of one complete cycle (in seconds)
+
+//Result
+
+printf("\n Time period of rectified input is %0.3f s.",T)