summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.20/Ch1_1_20.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /275/CH1/EX1.1.20/Ch1_1_20.sce
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 '275/CH1/EX1.1.20/Ch1_1_20.sce')
-rwxr-xr-x275/CH1/EX1.1.20/Ch1_1_20.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/275/CH1/EX1.1.20/Ch1_1_20.sce b/275/CH1/EX1.1.20/Ch1_1_20.sce
new file mode 100755
index 000000000..a0debd134
--- /dev/null
+++ b/275/CH1/EX1.1.20/Ch1_1_20.sce
@@ -0,0 +1,20 @@
+clc
+disp("Example 1.20")
+printf("\n")
+disp("calculate dynamic and substrate resistance")
+printf("Given\n")
+disp("forward current=20mA,cut in voltage=0.33v")
+If=20*10^-3
+Vf=0.33
+Rf=Vf/If
+If1=If-(10^-2) //min forward current
+If2=If+(10^-2) //max forward current
+Vf1=0.31
+Vf2=0.35
+rd=(Vf2-Vf1)/(If2-If1)
+rd1=0.026/If
+rsub=rd-rd1
+printf("static forward resistance=\n%f ohm\n",Rf)
+printf("Dynamic resistance=\n%f ohm\n",rd)
+printf("Dynamic resistance using forward current=\n%f ohm\n",rd1)
+printf("substrate resistance=\n%f ohm\n",rsub)