This will find π, or at least an approximation, depending on the frames you want. This uses the formula π=4+-4/k+4/k, in which k starts at 3 and adds 2 every frame. When cycling the addition and subtraction, it slowly ends up being π. It's impossible to precisely find π because it takes infinite amounts of these, so every single number produced is an approximation. 1,500,000 times gets the first 5-6 digits right (if you count 3 as a digit)