Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

80 def hitung(self): zo = float(self.ui.txt_zo.text().replace(',', '.')) zo_j = float(self.ui.txt_zo_j.text().replace(',', '.')) zl = float(self.ui.txt_zl.text().replace(',', '.')) zl_j = float(self.ui.txt_zl_j.text().replace(',', '.')) a = float(self.ui.txt_a.text().replace(',', '.')) b = float(self.ui.txt_b.text().replace(',', '.')) L = float(self.ui.txt_l.text().replace(',', '.')) f = float(self.ui.txt_f.text().replace(',', '.')) if self.ui.comboBox_zo.currentText() == "GΩ": zo = zo*10**9 zo_j = zo_j*10**9 elif self.ui.comboBox_zo.currentText() == "MΩ": zo = zo*10**6 zo_j = zo_j*10**6 elif self.ui.comboBox_zo.currentText() == "kΩ": zo = zo*10**3 zo_j = zo_j*10**3 elif self.ui.comboBox_zo.currentText() == "Ω": zo zo_j elif self.ui.comboBox_zo.currentText() == "mΩ": zo = zo*10**-3 zo_j = zo_j*10**-3 elif self.ui.comboBox_zo.currentText() == "µΩ": zo = zo*10**-6 zo_j = zo_j*10**-6 elif self.ui.comboBox_zo.currentText() == "nΩ": zo = zo*10**-9 zo_j = zo_j*10**-9

RkJQdWJsaXNoZXIy MTM3NDc5MQ==