blob: bbc1795ecb7823c3cfa82aa342b36fecf7342e3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//example 4.5
clc; funcprot(0);
// Initialization of Variable
V=12;
Vp=5;
R=10;
pi=3.1428;
//calculation
Ip=Vp/R;
Il=Ip/2^.5;
Pl=(Vp*Ip)/2;
disp(Pl,"power delivered in watt")
Id=Ip/pi;
disp(Id*1000,"dc supply current in mA")
Pt=2*V*Ip/pi;
disp(Pt,"total power in W")
Pic=Pt-Pl;
disp(Pic,"IC power in W")
clear()
|