Calculating Digits of Pi in Base-16 Using the Wolfram Formula

  • Thread starter Thread starter Redbelly98
  • Start date Start date
  • Tags Tags
    Base Pi
Click For Summary
The Wolfram formula for calculating digits of π in base-16 involves a series that requires careful handling of fractional and integral parts to extract the nth digit accurately. Simply taking the nth term does not yield the correct digit, as the output is not confined to the range of 0 to 15. The process is complex and typically requires computational assistance rather than manual calculation. Understanding the nuances of the formula enhances appreciation for the intricacies involved in digit extraction. Overall, the discussion highlights the challenges of using the Wolfram formula for practical digit calculation.
Redbelly98
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Messages
12,178
Reaction score
186
According to this link at Wolfram, the following formula can be used to calculate any digit of the base-16 representation of π[/size]:

<br /> \pi = \sum_{n=0}^{\infty} \ <br /> \left(<br /> \frac{4}{8n+1} - \frac{2}{8n+4} - \frac{1}{8n+5} - \frac{1}{8n+6} <br /> \right)<br /> \cdot \frac{1}{16^n}<br />

But apparently it is not as straightforward as simply taking the nth term in the series to get the nth digit. For example, the 0th term is 3.1333..., and not simply 3 as it must be.

So my question is, just how does one use this formula to calculate a digit? Or am I missing something in my above reasoning?
 
Physics news on Phys.org
The problem is that the expression between brackets isn't an integer between 0 and 15, so it's not going to give you the nth digit. You're going to have to deal with fractional and integral parts and do some cleaning up before you actually get the nth digit to pop out. You can read up on how to do this here. This is something that's not so easily done by hand, but very easily done by a computer program.
 
  • Like
Likes 1 person
morphism said:
You can read up on how to do this here.
Ah, thanks.

For the most part I'll have to be satisfied with "it's not so simple", but now I have a better appreciation and some sense of how it can be done.

Thanks again!
 
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
12K