Advertisement Jump to content


This topic is now archived and is closed to further replies.


reading digits of irrational numbers

This topic is 6050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This question hasn''t got a lot to do with gaming, but would rather be handy for math software and such, and MAYBE also to generate a fractal world for a game I''m planning to make. My question is: is it possible to know a certain digit of an irrational number without knowing the previous ones. For example, is it possible to know the 500th digit (base 10) of Pi without having to know all the 499 previous ones? Or the 500th digit of ln((1*6/8*7+63-5)^1.326)? And if so... how?

Share this post

Link to post
Share on other sites
For Pi, at least, there is a way to get arbitrary hex digits. (Good luck with the Fortran code).

Beware that algebraic (i.e. non-transcendental) irrational numbers repeat themselves with some finite period.

STFW for any 'Pi' page and you'll find googolplexes of methods and theories.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]

[edited by - Fruny on June 30, 2002 7:44:12 PM]

Share this post

Link to post
Share on other sites
Search for type in "Bailey Pi" at google and look for what turns up, it is stuff about that Pi formula but in a non language specific form (I think it is Bailey-Boffin, but I''m not sure how to spell the Boffin, leaving it out will get the results)

The equation itself is quite simple, just 4 or so terms.

What you must remember is that 1) it is hex and 2) just because it doesn''t repeat itself, doesn''t mean the distribution of numbers is random.

Trying is the first step towards failure.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!