finish math experiment of pi calculation