#
# toP(f,<options>)   will convert any symmetric function f in the omega
#  algebra into a sum of P-functions. The optional arguments are the
#  same as those supported by 'toQ'.
#
`QF/toP`:=proc() local mu,f,sp;
  f:=QF['toQ'](args); sp:=SF['varset'](f,'Q[]');
  subs({seq(Q[op(mu)]=2^nops(mu)*P[op(mu)],mu=sp)},f);
end:
#
save `QF/toP`, cat(HomeLib,`/QF/toP.m`);
read cat(HomeLib,`/help/QF/toP`);
quit;

