add a math function.