So one who finds pleasure in the pains of math.
My friend likes to do math so much he's a Mathochist.