summaryrefslogtreecommitdiff
path: root/182/CH5/EX5.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /182/CH5/EX5.3
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 '182/CH5/EX5.3')
-rwxr-xr-x182/CH5/EX5.3/5_3.txt4
-rwxr-xr-x182/CH5/EX5.3/example5_3.sce22
2 files changed, 26 insertions, 0 deletions
diff --git a/182/CH5/EX5.3/5_3.txt b/182/CH5/EX5.3/5_3.txt
new file mode 100755
index 000000000..d2e9dede0
--- /dev/null
+++ b/182/CH5/EX5.3/5_3.txt
@@ -0,0 +1,4 @@
+3case 1,
+Total current=0.460000 A
+case 2,
+Total current=0.006900 A
diff --git a/182/CH5/EX5.3/example5_3.sce b/182/CH5/EX5.3/example5_3.sce
new file mode 100755
index 000000000..d998d4f5d
--- /dev/null
+++ b/182/CH5/EX5.3/example5_3.sce
@@ -0,0 +1,22 @@
+
+//example 5-3 in page 124
+clc;
+// Given data
+// 3(1/2) digit display
+If1=20e-3;//forward current per segment of led=20 mA
+If2=300e-6;//forward current per segment of lcd
+//calculations
+for n=1:2
+ if n==1
+ I=If1;
+ else I=If2;
+ end
+ It=3*7*I+2*I;// each digit has 7 segments and there are three digits with a half digit that has 2 segments
+ printf("case %d,\n Total current=%.0f mA\n",n,It*1000);
+end
+//result
+// case 1,
+//Total current=0.460000 A
+//case 2,
+//Total current=0.006900 A
+ \ No newline at end of file