summaryrefslogtreecommitdiff
path: root/3556/CH9/EX9.7/Ex9_7.sce
blob: 8dc1f0c8aec64178b956233a5c71081cd45780c0 (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
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 - 7

clear; clc; close; 
//
// Given data
V  =  complex(50*cosd(75.0000),50*sind(75.0000));
Z  =  complex(4.0000,-10.0000);
//
// Calculations I
I  = V/Z;
I_mag = norm(I);
I_angle = atand(imag(I),real(I));
//
disp("Example 9-7 Solution : ");
printf(" \n I_mag    = Magnitude of I        = %.3f A",I_mag)
printf(" \n I_angle  = Angle of I            = %.3f degree",I_angle)