def v_tnorm(X, tnorm=None):
    """Calculates the given tnorm alongside the vector X"""
    tam = len(X)
    for ix, elem in enumerate(X):
        if ix == 0:
            acum_norm = tnorm(elem, X[ix + 1])
        elif ix < tam - 1:
            acum_norm = tnorm(acum_norm, X[ix + 1])
    return acum_norm
