`QF/text/toP` := TEXT(
`   `,
`FUNCTION:  toP - convert to Schur P-functions`,
`  `,
`CALLING SEQUENCE:  toP(f,<options>);`,
`  `,
`PARAMETERS:     f     = a symmetric function`,
`            <options> = zero or more of the following (in any order):`,
`                        (1) a basis name`,
`                        (2) a list of partitions with distinct parts`,
`                        (3) an equation of the form 'nrows=<integer>'`,
`   `,
`SYNOPSIS:`,
`  If f is any symmetric function in the Omega algebra, toP(f) will convert`,
`  f into a linear combination of Schur P-functions P[lambda], with 'normal'`,
`  applied to the coefficients.`,
`   `,
`  A number of optional arguments can be passed to the procedure that may`,
`  increase the efficiency, or (in some cases) modify the behavior of 'toP'.`,
`  In particular, if one of the arguments passed to 'toP' is ...`,
`   `,
`  (1) One of the special bases of QF; namely, p, q, or Q (or Q[]), then`,
`  the procedure assumes that f is expressed purely in terms of this basis.`,
`   `,
`  (2) A list of partitions with distinct parts, then the procedure will`,
`  assume (without verification) that if the coefficient of P[lambda] is`,
`  nonzero in f, then lambda appears in this list. If f is "sparse" with`,
`  respect to Schur P-functions, this can significantly speed up the`,
`  computation. The procedure 'DPar' can be useful for producing lists of`,
`  partitions for this purpose.`,
`   `,
`  (3) An equation of the form 'nrows=n', where n is a positive integer,`,
`  then the calculation will be performed in a quotient ring of Omega;`,
`  namely, the quotient in which there are only n variables. This is`,
`  equivalent to setting P[mu]=0 whenever mu has more than n parts.`,
`   `,
`EXAMPLES:`,
`  toP(Q[6,4,2,1],Q);      yields               16*P[6,4,2,1]`,
`  toP(p1^8, nrows=2);     yields     P[8]+6*P[7,1]+14*P[6,2]+14*P[5,3]`,
` `,
`SEE ALSO:  DPar, pfaff, top, toq, toddp, toddq, toP`,
NULL):

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