blob: 10a34dd12c08cd6b3a783837357f633aaa6a1d44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
clear
//Given
R1=10.0 //ohm
R2=5.0 //ohm
R3=15 //ohm
Ev=200
//Calculation
//
R=R1+R2+R3
X=R3-(R1+R3)
Z=sqrt(R**2+R1**2)
Iv=Ev/Z
T=X/R
a=-atan(T)*180/3.14
b=cos(a*3.14/180.0)
P=Iv**2*R
printf("\n (i) Circuit current is %0.2f A",Iv)
printf("\n (ii) Circuit phase angle is %0.2f degree lead",a)
printf("\n (iii)Phase angle between applied voltage and circuit current %0.3f lead",b)
printf("\n (iv)Power consumed is %0.3f W",P)
|