Math processor