Yet more trivial code cleanup of math functions.