summaryrefslogtreecommitdiff
path: root/1514/CH2/EX2.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1514/CH2/EX2.9
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 '1514/CH2/EX2.9')
-rwxr-xr-x1514/CH2/EX2.9/ch2_2_9.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1514/CH2/EX2.9/ch2_2_9.sce b/1514/CH2/EX2.9/ch2_2_9.sce
new file mode 100755
index 000000000..be8ed902a
--- /dev/null
+++ b/1514/CH2/EX2.9/ch2_2_9.sce
@@ -0,0 +1,20 @@
+//chapter 2
+//example 2.9
+//page 54
+clear all;
+clc ;
+//given
+E=5;//i/p voltage in volts
+Io=2;//o/p current in mA
+Eo=4.5;//o/p voltage in volts
+VF=0.7;//forward voltage drop across diode
+
+//finding value of R1
+R1=(E-Eo)/Io*10^3;
+
+Er=E;//diode reverse voltage
+
+// forward current
+If=(E-VF)/R1*10^3;
+
+printf('\nR1=%dohm\ndiode reverse voltage=%dv\nforward current=%.1fmA',R1,Er,If)