blob: 0c586907c29585e46bf36e8cb9ddca7bac7eb3f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Find current drawn by the battery
clear;
clc;
//soltion
//From fig
Vaa=10;//V//supply
R1=100;//ohm
R2=100;//ohm
//Forward Bias
Id=Vaa/R1;
printf("Current drawn from battery (forward bias) %.1f A\n",Id);
//Reverse Bias
Rnet=R1+R2;
Id=Vaa/Rnet;
printf("Current drawn from battery (reverse bias) %.2f A",Id);
|