Move to MathUtilities.