diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3507/CH9/EX9.2/Ex9_2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3507/CH9/EX9.2/Ex9_2.sce')
-rw-r--r-- | 3507/CH9/EX9.2/Ex9_2.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3507/CH9/EX9.2/Ex9_2.sce b/3507/CH9/EX9.2/Ex9_2.sce new file mode 100644 index 000000000..99a44add5 --- /dev/null +++ b/3507/CH9/EX9.2/Ex9_2.sce @@ -0,0 +1,23 @@ +//chapter9
+//example9.2
+//page145
+
+Vi_p=20 // V
+rf=10 // ohm
+Rl=500 // ohm
+Vo=0.7 // V
+Vin=20 // V
+
+// peak current through diode will occur when Vin=Vf so
+Vf=Vin
+// since Vf=Vo+If_peak(rf+Rl) making If_peak as subject we get
+If_peak1=(Vf-Vo)/(rf+Rl) // in ampere
+Vout_peak1=If_peak1*Rl
+
+// for ideal diode, Vo=0 and rf=0 so
+// Vf=If_peak*Rl so we get
+If_peak2=Vf/Rl // in ampere
+Vout_peak2=If_peak2*Rl
+
+printf("peak current through given diode = %.3f mA and peak output voltage = %.3f V \n",If_peak1*1000,Vout_peak1)
+printf("peak current through ideal diode = %.3f mA and peak output voltage = %.3f V \n",If_peak2*1000,Vout_peak2)
|