Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

111 elif self.ui.frekuensi_satuanh.currentText() == "kHz": f = f*10**3 elif self.ui.frekuensi_satuanh.currentText() == "Hz": f elif self.ui.frekuensi_satuanh.currentText() == "mHz": f = f*10**-3 elif self.ui.frekuensi_satuanh.currentText() == "µHz": f = f*10**-6 elif self.ui.frekuensi_satuanh.currentText() == "nHz": f = f*10**-9 elif self.ui.frekuensi_satuanh.currentText() == "pHz": f = f*10**-12 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) c = 3*10**8 lamb = round((c/f)/2, 7) self.ui.daya_outputh.setText(str(daya)+" %") self.ui.dlambda_outputh.setText(str(lamb)+" m") if __name__ =="__main__": app = QApplication(sys.argv) w = MyForm() w.show() sys.exit(app.exec()) Langkah Pembuatan Program a. Membuat UI/UX Desain Program dengan menggunakan

RkJQdWJsaXNoZXIy MTM3NDc5MQ==