blob: 750f23b2e61a1e58d1dd94227217fa8c6d70150e (
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 - 16
clear; clc; close;
//
// Given data
Z1 = complex(12,10)
Z2 = complex(8,-6)
Vs_mag = 150.0000;
Vs_angle = 0.0000;
Vs = complex(Vs_mag*cosd(Vs_angle),Vs_mag*sind(Vs_angle))
// Calculations Irms
Ztot = Z1 + Z2;
Irms = Vs/Ztot;
// Calculations Vrms
Vrms = Z2*Irms;
// Calculations Complex Power
S = Vrms * conj(Irms);
// Calculations Wattmeter Reading
P = real(S);
//
disp("Example 11-16 Solution : ");
printf(" \n a. P = Wattmeter Reading = %.3f Watt",P)
|