<jupyter_start><jupyter_text>Atividade 6<jupyter_code>import numpy as np
e = 2.71828182845
pi = 3.1415
u0 = 4*pi/10**(7)
make_complex = lambda radii, angles : radii * e**(1j*angles)
print_complex = lambda zc : print("valor  =", zc, "|valor|  = ",abs(zc),"  valor angle  = ",np.angle(zc)*180/pi)

s = 10*10**3
V1 = 2300
V2 = 230
f = 60
r1 = 5.92
xd1 = 11.95j
r2 = 0.0592
xd2 = 0.1195j
rc = 75500
xm = 70000j
fp = 0.95 #indutivo

w = 2*pi*f
a = V1/V2<jupyter_output><empty_output><jupyter_text>a)  B)<jupyter_code>r2_ = (a**2)*r2
xd2_ = (a**2)*xd2

i1 = s/V1
i2 = s/V2
i2_ = i2/a

zc_abs = V2/i2
zc_angle = np.arccos(0.95)
zc = make_complex(zc_abs,-zc_angle)

zc_ = (a**2)*zc

print("r1  =", r1)
print("xd1 =", xd1)
print("r2' =", r2_)
print("xd2'=", xd2_)
print("rc  =", rc)
print("xm  =", xm)

print("i1  =", i1)
print("i2  =", i2)
print("i2' =", i2_)

print("zc  =", zc, "|zc|  = ",abs(zc),"  zc angle  = ",np.angle(zc)*180/pi)
print("zc' =", zc_, "|zc'| = ",abs(zc_)," zc' angle =",np.angle(zc_)*180/pi)<jupyter_output>r1  = 5.92
xd1 = 11.95j
r2' = 5.92
xd2'= 11.95j
rc  = 75500
xm  = 70000j
i1  = 4.3478260869565215
i2  = 43.47826086956522
i2' = 4.3478260869565215
zc  = (5.025500000001745-1.6518019705710665j) |zc|  =  5.29   zc angle  =  -18.19540896778089
zc' = (502.5500000001745-165.18019705710665j) |zc'| =  529.0  zc' angle = -18.19540896778089<jupyter_text>c)  d)<jupyter_code>a_ = 1/a
r1_ = (a_**2)*r1
xd1_= (a_**2)*xd1
rc_ = (a_**2)*rc
xm_ = (a_**2)*xm

V1_ = a_*V1
i1_ = a_*i1

print("V1' =", V1_)

print("r1' =", r1_)
print("xd1'=", xd1_)
print("rc' =", rc_)
print("xm' =", xm_)
print("xd2 =", xd2)
print("r2  =", r2)

print("i1  =", i1)
print("i1' =", i1_)
print("i2  =", i2)

print("zc  =", zc, "|zc|  = ",abs(zc),"  zc angle  = ",np.angle(zc)*180/pi)<jupyter_output>V1' = 230.0
r1' = 0.05920000000000001
xd1'= 0.11950000000000002j
rc' = 755.0000000000001
xm' = 700.0000000000001j
xd2 = 0.1195j
r2  = 0.0592
i1  = 4.3478260869565215
i1' = 0.43478260869565216
i2  = 43.47826086956522
zc  = (5.025500000001745-1.6518019705710665j) |zc|  =  5.29   zc angle  =  -18.19540896778089<jupyter_text>e)  f)<jupyter_code>Req = (r1+r2_)+(xd1+xd2_)+(zc_)
i_alta = V1/Req

print_complex(i_alta)

##gabarito
""" ic = ia = 43.48
ic' =  i2' = 43.48/a """<jupyter_output>valor  = (4.157677755510172+1.141930310850185j) |valor|  =  4.311645759278295   valor angle  =  15.358367953752749<jupyter_text>g)<jupyter_code>V_enro = (r1+r2_)*i_alta
S_enro = V_enro*i_alta
print_complex(S_enro)<jupyter_output>valor  = (189.2301890884963+112.42738900178645j) |valor|  =  220.10902357746963   valor angle  =  30.716735907505505<jupyter_text>h)<jupyter_code>z_eq_h = (rc*xm)/(rc+xm)
i_eq_h = V1/z_eq_h
print_complex(i_eq_h)<jupyter_output>valor  = (0.030463576158940395-0.032857142857142856j) |valor|  =  0.044806487355362454   valor angle  =  -47.16618020455231<jupyter_text>i)<jupyter_code>S_i = V1*i_eq_h
print_complex(S_i)<jupyter_output>valor  = (70.06622516556291-75.57142857142857j) |valor|  =  103.05492091733365   valor angle  =  -47.16618020455231
StarcoderdataJupyterStructuredCleanDedup