import math


def shubert04(ind):
    """Shubert04 function defined as:
    $$ f(x) = \sum_{i=1}^n \sum_{j=1}^5 j cos((j+1)x_i) + j $$
    with a search domain of $-10 < x_i < 10, 1 \leq i \leq n$.
    """
    return sum(( sum((-j * math.cos((j+1) * ind[i] + j) for j in range(1, 6))) for i in range(len(ind)))),