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
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
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.
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
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:
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
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
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
>
> - 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
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
>
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
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
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
13 matches
Mail list logo