summaryrefslogtreecommitdiff
path: root/2075/CH4/EX4.7/pe4_7.sce
blob: 2795e369c533a718499363d397268fd0ec6bf175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//example 4.7
clc; funcprot(0);
// Initialization of Variable
V=24;
R=10;
Qs=4;
Tj=125;
Ta=40;
Qj=2.5;
Qc=2;
//calculation
P=(Tj-Ta)/(Qj+Qc+Qs);
disp(P,"power delivered by IC in watt:")
Vload=[9.4 9.6];
Iload=[.94 .96];
Pload=[4.42 4.61];
Ps=[14.36 14.67];
Pic=[9.94 10.06];
printf('Vload     Iload     Pload     Ps          Pic');
printf('\n')
for i=1:2
    printf('%.2f',Vload(i));
    printf('      %.2f',Iload(i));
    printf('      %.2f',Pload(i));
    printf('      %.2f',Ps(i));
    printf('      %.2f',Pic(i));
    printf('\n')
end
clear()