Zsbán Ambrus wrote:
> Hello!
>
> This is just an interesting approximation of the constant pi with
> rational numbers that's easy to write in J.  It gets more accurate as
> you increase the iteration count which is 9999 in this example.  It's
> not a practical approximation though, as it converges very slowly.
>
> +: */ */ 1 1 _1 _1 ^~ 2 2 1 3 +/ +: i. 9999

Nice approximation.  Where does it come from?

Best,

John


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to