That was also my first reaction, it really looks like homework.
In reply to Re^2: to calculate the value of π by Laurent_R in thread to calculate the value of π by TimTim