summaryrefslogtreecommitdiff
path: root/3809/CH2
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH2')
-rw-r--r--3809/CH2/EX2.1/EX2_1.sce16
-rw-r--r--3809/CH2/EX2.2/EX2_2.sce14
-rw-r--r--3809/CH2/EX2.3/EX2_3.sce15
-rw-r--r--3809/CH2/EX2.4/EX2_4.sce18
-rw-r--r--3809/CH2/EX2.6/EX2_6.sce15
5 files changed, 78 insertions, 0 deletions
diff --git a/3809/CH2/EX2.1/EX2_1.sce b/3809/CH2/EX2.1/EX2_1.sce
new file mode 100644
index 000000000..f90640f81
--- /dev/null
+++ b/3809/CH2/EX2.1/EX2_1.sce
@@ -0,0 +1,16 @@
+//Chapter 2, Example 2.1
+clc
+//Initialisation
+t=0.02 //time period in sec, from graph
+v1=7 //position peak voltage, from graph
+v2=7 //negative peak voltage, from graph
+
+//Calculation
+f=1/t //frequency in hertz
+vpp=v1+v2 //peak to peak voltage
+
+//Result
+printf("Period T = %.2f sec\n",t)
+printf("Frequency F = %d Hz\n",f)
+printf("Peak Voltage, Vp = %d V\n",v1)
+printf("Peak to Peak Voltage, Vpp = %d V\n",vpp)
diff --git a/3809/CH2/EX2.2/EX2_2.sce b/3809/CH2/EX2.2/EX2_2.sce
new file mode 100644
index 000000000..926e7ebef
--- /dev/null
+++ b/3809/CH2/EX2.2/EX2_2.sce
@@ -0,0 +1,14 @@
+//Chapter 2, Example 2.2
+clc
+//Initialisation
+t=50*10^-3 //time period in sec, from graph
+v1=10 //position peak voltage, from graph
+pi=3.14
+
+//Calculation
+f=1/t //frequency in hertz
+w=2*pi*f //angular velocity
+
+//Result
+printf("Equation of Voltage signal is, \n")
+printf("v = %d sin %d t",v1,round(w))
diff --git a/3809/CH2/EX2.3/EX2_3.sce b/3809/CH2/EX2.3/EX2_3.sce
new file mode 100644
index 000000000..837e39491
--- /dev/null
+++ b/3809/CH2/EX2.3/EX2_3.sce
@@ -0,0 +1,15 @@
+//Chapter 2, Example 2.3
+clc
+//Initialisation
+vp=10 //voltage
+f=10 //frequency in hertz
+pi=3.14 //pi
+phi=90 //phase angle
+
+//Calculation
+w=2*pi*f //angular frequency
+
+
+
+//Results
+printf("%d sin( %d t - %d)",vp,round(w),phi)
diff --git a/3809/CH2/EX2.4/EX2_4.sce b/3809/CH2/EX2.4/EX2_4.sce
new file mode 100644
index 000000000..061deb236
--- /dev/null
+++ b/3809/CH2/EX2.4/EX2_4.sce
@@ -0,0 +1,18 @@
+//Chapter 2, Example 2.4
+clc
+//Initialisation
+v1=5 //voltage
+v2=5 //voltage
+r=10 //resistance in ohm
+
+
+
+//Calculation
+p1=v1^2/r //Power in watt when a constant 5 V applied
+p2=v2^2/r //Power in watt when a sine wave of 5 V r.m.s is applied
+p3=((v1^2)/2)/r //Power in watt when a sine wave of 5 V peak is applied
+
+//Result
+printf("(a) P = %.1f W\n",p1)
+printf("(b) Pav = %.1f W\n",p2)
+printf("(c) Pav = %.2f W\n",p3)
diff --git a/3809/CH2/EX2.6/EX2_6.sce b/3809/CH2/EX2.6/EX2_6.sce
new file mode 100644
index 000000000..55424cad8
--- /dev/null
+++ b/3809/CH2/EX2.6/EX2_6.sce
@@ -0,0 +1,15 @@
+//Chapter 2, Example 2.6
+clc
+//Initialisation
+i2=1*10^-3 //full scale deflection current in ampere
+v=50 //full scale deflection voltage
+r=25 //resistance in ohm
+
+//Calculation
+i3=1/i2 //reduction of the sensitivity of the meter
+R=v/i2 //Resistance in ohm
+rse=R-r //Resistance in ohm
+
+//Result
+printf("Series Resistance, Rse = %.3f Kohm\n",rse/1000)
+printf(" \t\t\t≈ %.1f Kohm",rse/1000)