math-function now includes derivatives, and reassociates associative operators