summaryrefslogtreecommitdiff
path: root/317/CH5/EX5.15
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /317/CH5/EX5.15
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 '317/CH5/EX5.15')
-rwxr-xr-x317/CH5/EX5.15/example15.sce23
-rwxr-xr-x317/CH5/EX5.15/example15.txt1
2 files changed, 24 insertions, 0 deletions
diff --git a/317/CH5/EX5.15/example15.sce b/317/CH5/EX5.15/example15.sce
new file mode 100755
index 000000000..5c6858874
--- /dev/null
+++ b/317/CH5/EX5.15/example15.sce
@@ -0,0 +1,23 @@
+// find average LED current
+// Electronic Principles
+// By Albert Malvino , David Bates
+// Seventh Edition
+// The McGraw-Hill Companies
+// Example 5-15, page 170
+
+clear;clc; close;
+
+// Given data
+f=60;// frequency in hertz
+C=0.68*10^-6;// capacitance in faradays
+V=170;// voltage in volts
+
+// Calculations
+Xc=1/(2*%pi*f*C);// capacitive resistance in ohms
+Is1=V/Xc;// peak current in amperes
+Is2=Is1/%pi;// average of the half-wave currnt through LED
+disp("Amperes",Is2,"average LED current =")
+
+// Result
+// Average LED current is 13.9 mAmperes
+
diff --git a/317/CH5/EX5.15/example15.txt b/317/CH5/EX5.15/example15.txt
new file mode 100755
index 000000000..ab5f69aff
--- /dev/null
+++ b/317/CH5/EX5.15/example15.txt
@@ -0,0 +1 @@
+Average LED current is 13.9 mAmperes