For math I'm usually writing small programs or using spreadsheets, which again has benefits or search/edits/versions/undo.