#
# qf2char(f) will apply the (inverse) spin characteristic to a symmetric
# function f in the omega algebra. The result is expressed as a linear
# combination of split characteristic functions cl[<mu>] for various
# partitions <mu> with odd parts.
#
`QF/qf2char`:=proc() local f,i,j,d,res,cee,term,mu;
  f:=QF['toddp'](args); d:=SF['varset'](f,'p');
  cee:=[coeffs(f,[seq(cat('p',i),i=1..d)],'term')];
  term:=[term]; res:=0;
  for i to nops(cee) do
    mu:=seq((d-j)$(degree(term[i],cat('p',d-j))),j=0..d-1);
    res:=res+SF['zee']([mu],1/2^(1/2))*cee[i]*cl[mu];
  od;
  res
end: 
#
save `QF/qf2char`, cat(HomeLib,`/QF/qf2char.m`);
read cat(HomeLib,`/help/QF/qf2char`);
quit;

