Arbitrary PI calculation.