summaryrefslogtreecommitdiff
path: root/Working_Examples/154/DEPENDENCIES/ch2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/154/DEPENDENCIES/ch2_5.sce')
-rwxr-xr-xWorking_Examples/154/DEPENDENCIES/ch2_5.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/Working_Examples/154/DEPENDENCIES/ch2_5.sce b/Working_Examples/154/DEPENDENCIES/ch2_5.sce
new file mode 100755
index 0000000..9d9c06c
--- /dev/null
+++ b/Working_Examples/154/DEPENDENCIES/ch2_5.sce
@@ -0,0 +1,29 @@
+clc
+disp("Example 2.5")
+printf("\n")
+printf("Given")
+disp("a)")
+disp("Current through diode is 10mA")
+//From the table the value is at v=2.5V
+V=2.5;I=10*10^-3;
+R=V/I;
+delV=3-2
+delI=11*10^-3-9*10^-3
+r=delV/delI
+p=(V*I)*10^3
+printf("\n \n Static resistance is %3.2fohm\n",R)
+printf("Dynamic resistance is %3.2fohm\n",r)
+printf("Power consumption is %3.2fmW\n",p)
+
+disp("b)")
+disp("Current through diode is 15mA")
+//From the table the value is at v=5V
+V=5;I=15*10^-3;
+R=V/I;
+delV=5.5-4.5
+delI=16*10^-3-14*10^-3
+r=delV/delI
+p=(V*I)*10^3
+printf("\n \n Static resistance is %3.2fohm\n",R)
+printf("Dynamic resistance is %3.2fohm\n",r)
+printf("Power consumption is %3.2fmW\n",p) \ No newline at end of file