Re: [Jprogramming] nth digit of pi

2015-01-07 Thread Ian Clark
Thanks @Vijay. Don't apologize -- I'm a nit-picky sort of person. IMO typos in jwiki code are important: Mars missions have been lost for less. FYI... the "book chapters" linked from http://www.jsoftware.com/jwiki/At%20Play%20With%20J came out of a volunteer effort by the J community to revise and

Re: [Jprogramming] nth digit of pi

2015-01-07 Thread Vijay Lulla
The "To Summarize" chapter was great. However, I spotted a couple of typos. 1. The variable for storing 1000 digits is named g1000 whereas others are named q30, q100, q1000, and q3000. 2. You mention the consecutive digits formula correctly in the mail but it's wrong on the page. There's no d1000

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread Ian Clark
Vital reading is chapter 17 of "At Play With J", by Eugene McDonnell http://www.jsoftware.com/jwiki/At%20Play%20With%20J Here's my resultant page of notes made back in 2010. Touches on the points in this thread: See: Contact, by Carl Sagan, for a novel pivoting heavily on finding patterns in pi.

Re: [Jprogramming] nth digit of pi ln 2

2015-01-06 Thread 'Pascal Jasmin' via Programming
41 2848512109 (The precision comes from i.11 constant where 11 is 3 bits higher than the 8 bits precision taken) - Original Message - From: EelVex To: Programming forum Cc: Sent: Tuesday, January 6, 2015 5:32 PM Subject: Re: [Jprogramming] nth digit of pi Maybe this will help a bit: ht

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread Joey K Tuttle
On Tue, Jan 6, 2015 at 1:04 PM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: to be more specific, a function that gets the 1th digit of pi? ----- Original Message ----- From: Roger Hui To: Programming forum Cc: Sent: Tuesday, January 6, 2015 3:

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread EelVex
Maybe this will help a bit: http://codegolf.stackexchange.com/questions/1519/calculate-digits-of-pi On Tue, Jan 6, 2015 at 10:50 PM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > I don't really understand this well: > > > http://en.wikipedia.org/wiki/Approximations_of_%CF

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread Skip Cave
So the challenge is to write a J verb that will return the Nth decimal digit of pi. ​ h 0 3 ​​ h 1 1 ​​ h 2 4 ​​ h 10 5 ​​ h 100 9 ​​ h 1000 9 h 1 ? h 10 ? Skip -- For informati

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread 'Pascal Jasmin' via Programming
gramm...@jsoftware.com" Cc: Sent: Tuesday, January 6, 2015 4:20 PM Subject: Re: [Jprogramming] nth digit of pi f=: 3 : '10|<.@o. 10x^y' ​​ f 0 3 ​​ f 1 1 ​​ f 2 4 ​​ f 10 5 ​​ f 100 9 ​​ f 1000 9 f 1 .. still waiting Skip Cave

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread Roger Hui
> > - Original Message - > From: Roger Hui > To: Programming forum > Cc: > Sent: Tuesday, January 6, 2015 3:58 PM > Subject: Re: [Jprogramming] nth digit of pi > > Answering the letter if not the spirit of your question: > >f=: 3 : '10|<.@o. 10x^y

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread Skip Cave
mm...@jsoftware.com> wrote: > to be more specific, a function that gets the 1th digit of pi? > > > - Original Message - > From: Roger Hui > To: Programming forum > Cc: > Sent: Tuesday, January 6, 2015 3:58 PM > Subject: Re: [Jprogramming] nth digit of pi >

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread 'Pascal Jasmin' via Programming
to be more specific, a function that gets the 1th digit of pi? - Original Message - From: Roger Hui To: Programming forum Cc: Sent: Tuesday, January 6, 2015 3:58 PM Subject: Re: [Jprogramming] nth digit of pi Answering the letter if not the spirit of your question: f=: 3

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread Roger Hui
Answering the letter if not the spirit of your question: f=: 3 : '10|<.@o. 10x^y' f"0 i.5 20 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5 0 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 1 0 5 8 2 0 9 7 4 9 4 4 5 9 2 3 0 7 8 1 6 4 0 6 2 8 6 2 0 8 9 9 8 6 2 8 0 3 4 8 2 5 3 4 2 1 1 7 0 6 7

[Jprogramming] nth digit of pi

2015-01-06 Thread 'Pascal Jasmin' via Programming
I don't really understand this well: http://en.wikipedia.org/wiki/Approximations_of_%CF%80#Digit_extraction_methods is there a J program for finding the y th digit of pi (any base is ok) -- For information about J forums see http