summaryrefslogtreecommitdiff
path: root/1760/CH1/EX1.34/EX1_34.sce
blob: 80334f0be5762e30bf4e9be7258364d7d85392a4 (plain)
1
2
3
4
5
6
                   //Example   1-34            PG  NO-30
V=20;                //VOLTAGE
R1=5;                //Resistance
X=7.5;
P=(20/(R1+X))^2*(X);                //Power
disp('i)  Power (P) is    =  '+string (P) +'  W ');