support some math functions