The misc Library

The misc library contains some miscellaneous utility functions.

The package functions are called using the package name misc and the name of the function. E.g., use

myplus := misc::genassop(_plus, 0)

to create your own n-ary plus operator. (This is not really useful, since _plus is an n-ary operator, anyway.)

This mechanism avoids naming conflicts with other library functions. If this is found to be inconvenient, then the routines of the misc package may be exported via use. E.g., after calling

use(misc, genassop)

the function misc::genassop may be called directly:

myplus := genassop(_plus, 0)

All routines of the misc package are exported simultaneously by


The functions available in the misc library can be listened with:


We would especially like to thank Raymond Manzoni for contributing the function misc::pslq.

Was this topic helpful?