You can only use the mathematical function library currently provided internally by PMAC. As for the others, you cannot use them, or you have to write these functions yourself.
Generally speaking, a custom algorithm should be a very concise mathematical calculation program that does not contain any string processing or other content.
Your algorithm can be verified in advance using other tools, such as matlab, and then implemented in PPMAC.