Is there a way to calculate a specific digit of PI Is there any mathematical I could find a specific digit of 
If I had f(x) = ... what would the function to return the x digit of 
e.g.
f(1) = 3
f(2) = 1
f(5) = 5
f(12) = 9

This is Probably impossible, but I just want to be sure.

There is probably no function that can do such a thing for base-10 numbers. But if you use Leibniz's formula and change the top part of the sigma (like say, 10) you can calculate a good approximation for pi and look at the last digit.
