Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫  π  -¹ ² ³ °

You are not logged in.

## #1 2013-02-06 16:57:07

Leroy
Guest

### Nth digit of pi

I've heard that there is a function that gives nth digit of pi,is it true?if it is i'd like to know more about it.

## #2 2013-02-06 20:54:51

bobbym
From: Bumpkinland
Registered: 2009-04-12
Posts: 107,124

### Re: Nth digit of pi

Hi;

Yes, it is called a spigot algorithm. It can zero in on the nth digit without having to get all the preceding ones

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Leroy
Guest

## #4 2013-02-07 00:52:26

bobbym
From: Bumpkinland
Registered: 2009-04-12
Posts: 107,124

### Re: Nth digit of pi

Hi;

Here is an example of a spigot algorithm being used to get the 50 th digit from ln(2). Process is the same for pi.

http://www.mathisfunforum.com/viewtopic … 19#p229919

To see how pi is done check out the BBP formula right here.

http://en.wikipedia.org/wiki/Bailey-Bor … fe_formula

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Leroy
Guest

Thanks

## #6 2013-02-07 03:13:04

bobbym
From: Bumpkinland
Registered: 2009-04-12
Posts: 107,124

### Re: Nth digit of pi

Hi;

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

## #7 2013-02-07 04:11:28

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,018

### Re: Nth digit of pi

Hi bobbym

Is there a way of getting the nth decimal digit of pi by a spigot algorithm?

Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

## #8 2013-02-07 11:52:51

bobbym
From: Bumpkinland
Registered: 2009-04-12
Posts: 107,124

### Re: Nth digit of pi

Hi;

None that I know of, the BBP is for hexadecimal digits.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline