summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.18/example3_18.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.18/example3_18.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.18/example3_18.sce')
-rwxr-xr-x181/CH3/EX3.18/example3_18.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/181/CH3/EX3.18/example3_18.sce b/181/CH3/EX3.18/example3_18.sce
new file mode 100755
index 000000000..37f571e8c
--- /dev/null
+++ b/181/CH3/EX3.18/example3_18.sce
@@ -0,0 +1,27 @@
+// Find DC output voltage,pulse frequency
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 3-18 in page 162
+
+clear; clc; close;
+
+// Given data
+Vp=230; // Peak voltage in V
+f=50; // Frequency in Hz
+Rl=200; // Load resistance in ohms
+N=1/4; // Turn ratio
+
+// Calculation
+Vs=Vp*N;
+Vm=Vs*sqrt(2);
+Idc=(2*Vm)/(%pi*Rl);
+Vdc=Idc*Rl;
+fout=2*f;
+printf("(a)DC output voltage = %0.2f V\n",Vdc);
+printf("(b)Pulse frequency of output = %0.0f Hz",fout);
+
+// Result
+// (a) Vdc = 51.77 V
+// (b) F_out = 100 HZ \ No newline at end of file