summaryrefslogtreecommitdiff
path: root/2231/CH1/EX1.14/Ex_1_14.sce
blob: c3e0c884cca3cb70d11d73ca2fdfa8e3b355b06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 1_14
clc;
clear;close;

//Given data: 
Iavg=200;//A
period1=2*%pi;
period2=%pi;
Vth1=1.8;//V
I1=200;//A
Vth2=1.9;//V
I2=400;//A
//part (a)
Ploss1=I1*Vth1*period1/2/%pi;//W
disp(Ploss1,"(a) Average power loss (in W) : ");
Ploss2=I2*Vth2*period2/2/%pi;//W
disp(Ploss2,"(b) Average power loss (in W) : ");