Doing math for fun, enjoyment, entertainment and/or to pleasureones self.
Dude1: Hey! whats that nerd over there doing with that calculator?
Dude2: Probably mathterbating
Dude1: Dude! sick he could at least go to the bathroom to do dat
Dude2: Gotta do what you gotta do