So given any point (a + ib), the function will return 1 if it is in the mandelbrot set or 0 if not for n amount of iterations.
I'm having difficulties trying to code this function, especially with the complex numbers. Can anyone help me or give some advice for me to start?
So far I can only think of a way to determine if a real number (any x, y = 0) is in the mandelbrot set.
EDIT: Sorry forgot to say that I'm coding in C, I'm looking for some psuedocode ideas mostly though.