104 if (f==0): self.ui.dlambda_outputq.setText("Frekuensi bernilai 0") else: c = 3*10**8 lamb = round((c/f)/4, 7) self.ui.dlambda_outputq.setText(str(lamb) + " m") zt = round((zo*zl1)**0.5, 7) self.ui.daya_outputq.setText(str(daya)+" %") self.ui.d_outputq.setText(str("ZL Resistif Murni")) self.ui.zind_outputq.setText(str("ZL Resistif Murni")) self.ui.zt_outputq.setText(str(zt) + " Ω") if self.ui.mode_inputq.currentText() == "Complex Number": if (zl1 == 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 REAL BERNILAI 0")) self.ui.semua_input1.setText(str()) elif (zl2 == 0): self.ui.lbl_gagal.setText("GAGAL MENGHITUNG") self.ui.lbl_sukses.setText("")
RkJQdWJsaXNoZXIy MTM3NDc5MQ==