Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

103 f = f*10**-9 elif self.ui.frekuensi_satuanq.currentText() == "pHz": f = f*10**-12 if self.ui.mode_inputq.currentText() == "Not a Complex Number": if (zl2 > 0 or zl2 < 0): self.ui.lbl_gagal.setText("GAGAL MENGHITUNG") self.ui.lbl_sukses.setText("") 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")) self.ui.semua_input1.setText(str()) else: 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) # koef = (zl1 - zo) / (zl1 + zo) # daya = round((koef**2)*100, 7)

RkJQdWJsaXNoZXIy MTM3NDc5MQ==