summaryrefslogtreecommitdiff
path: root/3556/CH11/EX11.1/Ex11_1.sce
blob: 6eadd8f9ffa3c0a29af2b6e850cf3ecbb20b42bf (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
30
31
clc
// Fundamental of Electric Circuit 
// Charles K. Alexander and  Matthew N.O Sadiku  
// Mc Graw Hill of New York 
// 5th Edition 

// Part 2     :  AC Circuits 
// Chapter 11 :  AC Power Analysis 
// Example 11 - 1

clear; clc; close; 

// Given data
Vm_mag   = 120.0000;
Vm_angle =  45.0000;
Im_mag   =  10.0000;
Im_angle = -10.0000;
//
// Calculations Average Power 
P = 0.5000 * Vm_mag * Im_mag * cosd(Vm_angle - Im_angle);
//
// Display the result
disp("Example 11-1 Solution : ");
printf(" \n P = Average Power                    = %.3f Watt",P)