FUNCTION: partitions[printptns] - print partitions
CALLING SEQUENCE: printptns(ptns)
PARAMETERS: ptns - list of partitions
-
GLOBAL VARIABLES:
SYNOPSIS:
Prints a list of ptns in standard form
EXAMPLES:
> with(combinat):
> with(partitions):
> ptns9:=partition(9):
> ptns1:=select(ptnDP,ptns9);
ptns1 := [[2, 3, 4], [1, 3, 5], [4, 5], [1, 2, 6], [3, 6], [2, 7], [1, 8], [9]]
> printptns(ptns1);
9
`8 + 1`
`7 + 2`
`6 + 3`
`6 + 2 + 1`
`5 + 4`
`5 + 3 + 1`
`4 + 3 + 2`
DISCUSSION:
SEE ALSO: standptn