def METHOD_NAME(eta):
    guessed_x, guessed_y = step_points(eta, W=W, a=a)
    if y_desired is None:
        return (guessed_x - x_desired) ** 2  # The error
    else:
        return (guessed_y - y_desired) ** 2