summaryrefslogtreecommitdiff
path: root/3556/CH10/EX10.9/Ex10_9.sce
blob: 02c9bddcebd140998f4ab793ea1a624298f66b75 (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
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 10 :  Sinusoidal Steady State Analysis
// Example 10 - 9
clear; clc; close;
 
// Given data
Z1 = complex(2.0000,-4.000);
Z2 = complex(4.0000,3.0000);
Io = complex(10.0000,0.0000)
Is = complex(15.0000,0.0000)
// Calculations Vth
Vth = (Io*Z1) - (5*Z2);
Vth_mag = norm(Vth);
Vth_angle = atand(imag(Vth),real(Vth))
//
// Display the result
disp("Example 10-9 Solution : ");
printf(" \n Vth_mag   = Magnitude of Vth          = %.3f Volt",Vth_mag)
printf(" \n Vth_angle = Angle of Vth              = %.3f degree",Vth_angle)