blob: 7e7b118e11bae86f77d7d237e73b774ebc13f17b (
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
32
33
34
|
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 9 : Sinusoids and Phasors
// Example 9 - 11
clear; clc; close;
//
// Given data
L = 5.0000;
C = 0.0100;
w = 4.0000;
R = 60.0000;
Vs = complex(20*cosd(-15.0000),20*sind(-15.0000));
ZL = complex(0.0000,w*L);
ZC = complex(0.0000,-1/(w*C));
ZR = complex(R,0.0000);
//
// Calculations Zp = ZL//ZC
Zp = (ZL*ZC)/(ZL+ZC);
// Calculations Ztot
Ztot = ZR + Zp;
// Calculations Vo
Vo = ((Zp)/(Ztot)) * Vs;
Vo_mag = norm(Vo);
Vo_angle = atand(imag(Vo),real(Vo));
//
disp("Example 9-11 Solution : ");
printf(" \n Vo_mag = Magnitude of Vo = %.3f Volt",Vo_mag)
printf(" \n Vo_angle = Angle of Vo = %.3f degree",Vo_angle)
|