blob: a02d269f8f963cb1ec96b153e4cd2ca44ef37a8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Chapter6
// Page.No-222, Figure.No-6.18
// Example_6_11
// Current and voltage drop
// Given
clear;clc;
Vin=0.5;Vo=1.2;
R1=100;
Io=Vin/R1; // Current through diode
printf("\n Current through diode is = %.4f A \n",Io)
Vd=Vo-Vin; // Voltage drop across diode
printf("\n Voltage drop across diode is = %.1f V \n",Vd)
|