Modify annotations for math methods.