def Inverse(a,b): M=a/(a**2+b**2) N=-b/(a**2+b**2) if N>0: I=str(M)+"+"+str(N)+"i" else: I=str(M)+"-"+str(abs(N))+"i" return I