Estimate pi with Viète's formula