Replase math functions