Math and polynomial stuff.