Adding functions to math object.