def function_task_2(params):
    """ Function given by task

    :param params: [x, y]
    :return: function value
    """
    x, y = params

    return (1.5 - x + x * y)**2 + (2.25 - x + x * y**2)**2 + (2.625 - x + x * y**3)**2