[math-fun] Am I reinventing the wheel?