code: def mandelbrot(x, y, params):
      
      mb_x, mb_y = get_coords(x, y, params)
      mb = mandelbrot_iterate(mb_x + 1j * mb_y, params.max_iterations, params.julia_seed)
  
      return mb[1]
docs: Computes the number of iterations of the given plane-space coordinates.
  
      :param x: X coordinate on the plane.
      :param y: Y coordinate on the plane.
      :param params: Current application parameters.
      :type params: params.Params
      :return: Discrete number of iterations.