summaryrefslogtreecommitdiff
path: root/147/CH3/EX3.2/Example3_2.sce
blob: 6bc54c7d689230911c64ee458f7eaf9f9b14530c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//V = Vmax*sin(omega*t) i = imax*sin(omega*t-phi)
close();
clear;
clc;
Vmax = 155.6;
omega = 377;//Deg
imax = 7.07;
phi = 36.87;
f = omega/(2*%pi);
T = 1/f;
phase_angle = phi*%pi/180;
mprintf('frequency f = %0.0f Hz\nT = %0.4f s \nphase angle betwwen v and i = %0.2f rad',f,T,phase_angle);