`QF/text/toq` := TEXT(
`   `,
`FUNCTION: toq - convert to a polynomial in the q-functions`,
`  `,
`CALLING SEQUENCE:  toq(f);  toq(f,b);`,
`  `,
`PARAMETERS:  f = a symmetric function in the Omega algebra`,
`             b = (optional) a basis name`,
`   `,
`SYNOPSIS:`,
`  If f is any symmetric function in the Omega algebra, toq(f) will`,
`  convert f into a polynomial expression in the symmetric functions`,
`  q1,q2,q3,..., with the result collected in 'distributed' form with`,
`  respect to q1,q2,q3,..., and 'normal' applied to the coefficients.`,
`  The generator q.i is the same as the one-rowed Q-function Q[i].`,
`   `,
`  Note that the generators q.i are not algebraically independent, so`,
`  the expression is not unique. For a canonical expression, use 'toddq'`,
`  to express the result in terms of q1,q3,q5,...`,
`   `,
`  If a second argument b is one of the special bases of QF; namely,`,
`  p, Q (or Q[]), or P (or P[]), then f is assumed to be expressed `,
`  purely in terms of this basis.`,
`  `,
`EXAMPLES:`,
`  toq(8*p5*p1+5*Q[4,2]);   yields   -6*q4*q1^2+2*q2*q3*q1+10*q6+5*q4*q2`,
`  toq(Q[5,2],Q);           yields           q5*q2-2*q6*q1+2*q7 `,
`  `,
`SEE ALSO:  toddp, toddq, toP, toQ`,
NULL):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`QF/toq`,
  helpfile=HomeLib, text=`QF/text/toq`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/QF/text/toq`:=`QF/text/toq`:
  save `help/QF/text/toq`, cat(HomeLib,`/help/QF/text/toq.m`);
fi:
