Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

83 koefr = ((zin.realzo)*(zin.real+zo)+(zin.imagzo_j)*(zin.imag+zo_j))/((zin.real+zo)**2+(zin.imag +zo_j)**2) koefi = ((zin.imagzo_j)*(zin.real+zo)-(zin.realzo)*(zin.imag+zo_j))/((zin.real+zo)**2+(zin.imag+z o_j)**2) koef = complex (koefr,koefi) self.ui.lbl_y.setText("j tan "+str(tanhy)+"°") self.ui.lbl_zin.setText(str(zin) + "Ω") self.ui.lbl_r.setText(str(koef)) else: tanr1 = (math.tanh(a*L)) tanr2 = (math.tan(b*L)) tanr = complex(tanr1, tanr2) tani = (math.tanh(a*L))*(math.tan(b*L)) tank = complex(1, tani) tanh = complex(tanr/tank) zinr =((complex(zl,zl_j)+ complex(zo)*(tanh))) zini =(complex(zo)+complex(zl,zl_j)*(tanh)) zin = complex(zo*(zinr/zini)) koefr = ((zin.realzo)*(zin.real+zo)+(zin.imagzo_j)*(zin.imag+zo_j))/((zin.real+zo)**2+(zin.imag +zo_j)**2) koefi = ((zin.imagzo_j)*(zin.real+zo)-(zin.realzo)*(zin.imag+zo_j))/((zin.real+zo)**2+(zin.imag+z o_j)**2) koef = complex (koefr,koefi) self.ui.lbl_y.setText(str(tanh)) self.ui.lbl_zin.setText(str(zin) + "Ω") self.ui.lbl_r.setText(str(koef)) if __name__=="__main__": app = QApplication(sys.argv) w = MyForm() w.show() sys.exit(app.exec_())

RkJQdWJsaXNoZXIy MTM3NDc5MQ==