import sympy as sp from IPython.display import display a,b,z = sp.var("a b z") a=1+1j b=4-2j Soll = sp.solve(a*z+b,z) display(Soll)