Here's yet another way to derive pi:

Set xo to 2*sqrt(3).
Set yo to 3.

Define xn as:

2 * xn-1 * yn-1
xn-1 + yn-1

Define yn as sqrt(xn * yn-1).

The limit for both xn and yn as n approaches infinity will be pi.