summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.20/example3_20.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.20/example3_20.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.20/example3_20.sce')
-rwxr-xr-x181/CH3/EX3.20/example3_20.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/181/CH3/EX3.20/example3_20.sce b/181/CH3/EX3.20/example3_20.sce
new file mode 100755
index 000000000..1abc395ff
--- /dev/null
+++ b/181/CH3/EX3.20/example3_20.sce
@@ -0,0 +1,26 @@
+// Calculate input voltage,value of filter
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 3-20 in page 163
+
+clear; clc; close;
+
+// Given data
+Vdc=30; // DC voltage in volts
+Rl=1000; // Load resistance in ohms
+gamma_fwr=0.015; // Ripple factor
+
+// Calculation
+Idc=Vdc/Rl;
+C=2900/(gamma_fwr*Rl);
+Vm=Vdc+((5000*Idc)/C);
+Vi=(2*Vm)/sqrt(2);
+printf("Value of capacitor filter = %0.0f mu-F",C);
+printf("Input voltage required = %0.2f V\n",Vi);
+
+
+// Result
+// V_in = 43.52 V
+// C = 193 mu-F \ No newline at end of file