summaryrefslogtreecommitdiff
path: root/3754/CH6
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH6')
-rw-r--r--3754/CH6/EX6.1/6_1.sce14
-rw-r--r--3754/CH6/EX6.2/6_2.sce14
-rw-r--r--3754/CH6/EX6.3/6_3.sce15
-rw-r--r--3754/CH6/EX6.4/6_4.sce13
-rw-r--r--3754/CH6/EX6.5/6_5.sce14
5 files changed, 70 insertions, 0 deletions
diff --git a/3754/CH6/EX6.1/6_1.sce b/3754/CH6/EX6.1/6_1.sce
new file mode 100644
index 000000000..129018ad1
--- /dev/null
+++ b/3754/CH6/EX6.1/6_1.sce
@@ -0,0 +1,14 @@
+clear//
+
+//Variables
+
+t = 1.0 //time (in milliseconds)
+n = 10.0 //number of cycles
+
+//Calculation
+
+T = t/n //Time period (in milliseconds)
+
+//Result
+
+printf("\n Time period by one cycle is %0.3f ms.",T)
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)
diff --git a/3754/CH6/EX6.3/6_3.sce b/3754/CH6/EX6.3/6_3.sce
new file mode 100644
index 000000000..1a4d0e8bf
--- /dev/null
+++ b/3754/CH6/EX6.3/6_3.sce
@@ -0,0 +1,15 @@
+clear//
+
+//Variables
+
+n = 5.0 //number of cycles
+t = 10.0 //time period (in micro-seconds)
+
+//Calculation
+
+f = n / t //frequency (in Mega-hertz)
+T = 1/f //Time period (in micro-seconds)
+
+//Result
+
+printf("\n Frequency and Time period of the sine wave is %0.3f MHz and %0.3f micro-seconds.",f,T)
diff --git a/3754/CH6/EX6.4/6_4.sce b/3754/CH6/EX6.4/6_4.sce
new file mode 100644
index 000000000..0b17908e7
--- /dev/null
+++ b/3754/CH6/EX6.4/6_4.sce
@@ -0,0 +1,13 @@
+clear//
+
+//Variables
+
+f = 69.0 //frequency (in Mega-hertz)
+
+//Calculation
+
+T = 1/f //Time period (in micro-seconds)
+
+//Result
+
+printf("\n Time period is %0.2f ns.",T * 10**3)
diff --git a/3754/CH6/EX6.5/6_5.sce b/3754/CH6/EX6.5/6_5.sce
new file mode 100644
index 000000000..2aae3a99d
--- /dev/null
+++ b/3754/CH6/EX6.5/6_5.sce
@@ -0,0 +1,14 @@
+clear//
+
+//Variables
+
+Vmax = 20.0 //Voltage (in milli-volts)
+
+//Calculation
+
+Vrms = 0.707 * Vmax //Rms Voltage (in milli-volts)
+Vdc = 0.637 * Vmax //Average value of signal (in milli-volts)
+
+//Result
+
+printf("\n RMS value is %0.3f mV.\nAverage value is %0.3f mV.",Vrms,Vdc)