'Tablet test objective function'

def tablet(self, x, rot=0):

    if rot:
        x = rotate(x)
    x = ([x] if np.isscalar(x[0]) else x)
    f = [((1000000.0 * (x[0] ** 2)) + sum((x[1:] ** 2))) for x in x]
    return (f if (len(f) > 1) else f[0])
