(f)
Computes functional decomposition of ``f``.
Computes functional decomposition of ``f``.
Computes functional decomposition of f .
def decompose(f):
        """Computes functional decomposition of ``f``. """
        if not f.lev:
            return list(map(f.per, dup_decompose(f.rep, f.dom)))
        else:
            raise ValueError('univariate polynomial expected')
def decompose ( f ) : if not f . lev : return list ( map ( f . per , dup_decompose ( f . rep , f . dom ) ) ) else : raise ValueError ( 'univariate polynomial expected' )