Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

106 d = round(d*((c/f)), 7) lamb = round((c/f)/4, 7) self.ui.d_outputq.setText(str(d) + " m") self.ui.dlambda_outputq.setText(str(lamb) + " m") vswr = (1 + abs(rp)) / (1 - abs(rp)) zlnormal = vswr * zo zt = round((zo*zlnormal)**0.5, 7) zlnormal = round(zlnormal, 7) self.ui.daya_outputq.setText(str(daya)+" %") self.ui.zind_outputq.setText(str(zlnormal) + " Ω") self.ui.zt_outputq.setText(str(zt) + " Ω") if (zl2 < 0): self.ui.semua_input0.setText(str()) self.ui.semua_input1.setText(str("TIDAK ADA PERINGATAN")) koef = complex((complex(zl1, zl2) - complex(zo)) / (complex(zl1, zl2) + complex(zo))) koef = complex(round(koef.real, 7),round(koef.imag, 7)) rp = math.sqrt(koef.real**2+koef.imag**2) ip = cmath.phase(koef) ip = (np.degrees(ip)) daya = round((rp**2)*100, 7) if (f==0): ip = cmath.phase(koef) ip = (np.degrees(ip)) d = round(0.25 - abs(ip)/720, 7) self.ui.d_outputq.setText(str(d)+"λ")

RkJQdWJsaXNoZXIy MTM3NDc5MQ==