summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.19/example3_19.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /181/CH3/EX3.19/example3_19.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '181/CH3/EX3.19/example3_19.sce')
-rwxr-xr-x181/CH3/EX3.19/example3_19.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/181/CH3/EX3.19/example3_19.sce b/181/CH3/EX3.19/example3_19.sce
new file mode 100755
index 000000000..80937aaa8
--- /dev/null
+++ b/181/CH3/EX3.19/example3_19.sce
@@ -0,0 +1,25 @@
+// Find maximum dc voltage
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 3-19 in page 162
+
+clear; clc; close;
+
+// Given data
+Vp=220; // Peak voltage in V
+f=50; // Frequency in Hz
+Rl=1.5*10^3; // Load resistance in ohms
+N=0.1; // Turn ratio
+
+// Calculation
+Vs=Vp*N;
+Vrms=Vs*sqrt(2);
+Vm=Vrms/2;
+Idc=(2*Vm)/(%pi*Rl);
+Vdc=Idc*Rl;
+printf("Maximum dc output voltage = %0.2f V",Vdc);
+
+// Result
+// Dc output voltage = 9.9 V \ No newline at end of file