[math] dox cleanup