summaryrefslogtreecommitdiff
path: root/165/CH4/EX4.19/ex4_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '165/CH4/EX4.19/ex4_19.sce')
-rw-r--r--165/CH4/EX4.19/ex4_19.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/165/CH4/EX4.19/ex4_19.sce b/165/CH4/EX4.19/ex4_19.sce
new file mode 100644
index 000000000..c800e5237
--- /dev/null
+++ b/165/CH4/EX4.19/ex4_19.sce
@@ -0,0 +1,30 @@
+//Example 4.19
+close;
+clc;
+
+e=10; //in volts
+R1=10000; //In ohms
+R2=10000; //In ohms
+Ifsd=100*10^-6; //in amperes
+Range=10; //in volts
+Sdc=1/Ifsd; //Sensitivity
+Rs=Sdc*Range; //Multiplier Resistence
+
+//Voltage across R2
+R=R2*Rs/(R2+Rs);
+ER2=e*R/(R1+R);
+printf('\nThe reading obtained by DC voltmeter = %.2f V\n',ER2)
+
+//Reading obtained using half wave rectifier
+Shw=0.45*Sdc;
+Rs=Shw*Range;
+R=R2*Rs/(R2+Rs);
+ER2hw=e*R/(R1+R);
+printf('\nReading obtained using half wave rectifier = %.2f V\n',ER2hw)
+
+//Reading obtained using full wave rectifier
+Sfw=0.90*Sdc;
+Rs=Sfw*Range;
+R=R2*Rs/(R2+Rs);
+ER2fw=e*R/(R1+R);
+printf('\nReading obtained using full wave rectifier = %.2f V\n',ER2fw) \ No newline at end of file