I'd like to plot the circle described by the equation |z - 1| = 1 for complex z. I expected the following to work:
f(x, y) = abs(x + i * y -1)
implicit_plot(f(x, y) - 1, xrange=(-2, 2), yrange=(-2, 2))
but it fails with:
TypeError: unable to coerce to a real number
which seems strange, since abs does't return a complex number. The following fails with the same error:
f(x, y) = abs(x + i * y -1)
implicit_plot((f(x, y) - 1).real_part(), xrange=(-2, 2), yrange=(-2, 2))
What's the right way to plot this function?
