summaryrefslogtreecommitdiff
path: root/3507/CH10/EX10.2/Ex10_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3507/CH10/EX10.2/Ex10_2.sce')
-rw-r--r--3507/CH10/EX10.2/Ex10_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3507/CH10/EX10.2/Ex10_2.sce b/3507/CH10/EX10.2/Ex10_2.sce
new file mode 100644
index 000000000..724cadbd1
--- /dev/null
+++ b/3507/CH10/EX10.2/Ex10_2.sce
@@ -0,0 +1,11 @@
+//chapter10
+//example10.2
+//page183
+
+Vs=15 // V
+Vd=2 // V
+Rs=2.2d3 // ohm
+
+If=(Vs-Vd)/Rs
+
+printf("current through LED = %.3f A or %.3f mA",If,If*1000)