reading digits of irrational numbers
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?
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]
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]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
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.
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.
Trying is the first step towards failure.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement