summaryrefslogtreecommitdiff
path: root/2825/CH3/EX3.9/Ex3_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2825/CH3/EX3.9/Ex3_9.sce')
-rwxr-xr-x2825/CH3/EX3.9/Ex3_9.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2825/CH3/EX3.9/Ex3_9.sce b/2825/CH3/EX3.9/Ex3_9.sce
new file mode 100755
index 000000000..23c7b0c38
--- /dev/null
+++ b/2825/CH3/EX3.9/Ex3_9.sce
@@ -0,0 +1,14 @@
+//Ex3_9 Pg-185
+clc
+
+n=1 //constant
+T=27+273 //temperature in K
+Vt=T/11600
+V=0.2 //voltage
+I0=10^(-6) //saturation current
+I=I0*(exp(V/Vt)-1)
+stat_res=V/I //static resistance
+printf("Static resistance = %.2f ohm \n",stat_res)
+
+dyn_res=Vt/(I+I0) //dynamic resistance
+printf("Dynamic resistance = %.2f ohm",dyn_res)