Exercise: test math functions