Math: minor cleanup.
Math: document some potentially non-obvious tricks.