summaryrefslogtreecommitdiff
path: root/1757/CH14/EX14.2/EX14_2.sce
blob: 6177ca441ccbf0715449e63df332a4a6faed549f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example14.2 // to determine the current drawn from the dual power supply 
clc;
clear;
close;
V = 10 ;  // V
P = 500 ; // mW

// we assume that  each power supply provides half power supply to IC
P1 = (P/2);

// the total power dissipation of the IC
// P1 = V*I ;
I = P1/V ;
disp('the total power dissipation of the IC is = '+string(I)+' mA ');