blob: c3589be8d72fe1bbf9de845dc79924e8a6c4d60b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Example 3_42
clc;
clear;
close;
format('v',7);
//given data :
R=4;//ohm
L=20;//mH
V=230;//V
f=50;//Hz
omega=2*%pi*f;//rad/s
ZL=R+%i*omega*L/1000;//ohm
IL=V/ZL;//A
fi_L=atand(imag(IL)/real(IL));//degree
IC=abs(IL)*sind(fi_L);//A
XC=-V/IC;//ohm
C=1/2/%pi/f/XC*10^6;//micro F
disp(C,"Value of capacitor(micro F)");
I0=abs(IL)*cosd(fi_L);//A
format('v',5);
disp(I0,"Magnitude of in-phase current(A)");
//Answer is not accurate in the book.
|