How do I use an infinite series to find an approximation for pi?