'Computes functional decomposition of ``f``.'

def decompose(f):

    if (not f.lev):
        return list(map(f.per, dup_decompose(f.rep, f.dom)))
    else:
        raise ValueError('univariate    polynomial    expected')
