Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

105 self.ui.daya_outputq.setText(str()) self.ui.d_outputq.setText(str()) self.ui.zind_outputq.setText(str()) self.ui.dlambda_outputq.setText(str()) self.ui.zt_outputq.setText(str()) self.ui.semua_input0.setText(str("ZL IMAJINER BERNILAI 0")) self.ui.semua_input1.setText(str()) else: 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(abs(ip)/720, 7) self.ui.d_outputq.setText(str(d)+"λ") self.ui.dlambda_outputq.setText("Frekuensi bernilai 0") else: c = 3*10**8 d = abs(ip)/720

RkJQdWJsaXNoZXIy MTM3NDc5MQ==