in reply to Re: the secret of PI
in thread the secret of PI

If you want to produce strings from numbers, I suggest my Math::Fleximal. Converting your number above to base 26 I get:
nuthtyhtdpfinhyipsbruqexifcqhatvnvfllozvphwvlwkzxxuxkagd kcrengspkehnshjswoqcsdydebhlbghtoqafhokqdrotmpocphfgapwe cczcygnghilplmfwzjznumybripnuvwxpagbmsoqcnnriefashyptlrx qfvpecmipsyhbxfljkzdidhufjqsojagahyapmdjatgkqgeckodwmbon vhiqadxvebworuudzozsjylfomchobtzvabyqywpfnqipcxvhkmxamgh dnkisvqdobkpzdfsnlenltqowomyrlhkopznhnevjiofdmacfxsaksps ipbmmatuajuowctcazksqinescosmyzxiuoeiqrzjqlpfmhtrhxdnift barmdhnbaoalntlmmwjsmbbrgrgsxmdpbhaoufzeybplyxtcfhmwpjzw naizhhlxeifszkghtkrmxxrnlajicomjqcpdmbstvlwupcnktniudxfu vfunpgzbyehqqxshxhvvyupcfcoriuwfmpnmsxszrzcpmxplbbbxtsfs pojbxwuzbfpsuryipvdbzpmftphgocieonbquqvaeolvmylnclyvqdwq ltduvpefwyyqxszxwzfhytwxxxrueadyzicbkqgylvcdflfcczfmhutc oxxsjrjuaxlymoxymbnchxggdcdvvjitsixrlbgyvxnfinmsbqanqzai voycbrdcchgjrutrjkxhvejcnpndabcymnjbkmvhatgpcxyjmzjhkzuq hbqefnxzpwkasejgfpolraoomracqcxjdgoxrkuoelaurwddjfwmcplp vbuljaeqanykvdwqdzjtgylngbijslkcfwyvivzjptqxezsnvlubmsoa olewkuutumtjnwgnwckwclfmvlgyuiaovsewgpkbekiycwkqpucgfskt srucfnvzcibnktrmlzxrbndzmgswjyonefknoyeozkkxhlcwfzrzwahb cehvothdpypfswolmfmhciidirmfyowrbhonlgyjhbhwssthtapcetme afyvghadstgjdvsdfbibwfqqhroohwmlnzlfsgboszdmjqztdddngglo bzkqpxeghfehewdujftoanolymtbizwpodntfzqbvdlkwifwknewcguf joudwcrccsholumyfyuatiqgoctnsdmisrsoyausrjeiybrmnzpqyrfw awaknonguxbtrnfrkdmsghxialplxodcucacrsjfazraegjkljnicpvc uqdouphyyrurpluhgsbwugcnijymtvvbwtnhbvbxaeudqbyuiwarxcln pollepbtchkiatczhtigbakxigykqiqciuglvjcpknrbkhyhrlgtlhwz kgifinjygwtwhp
Of course you will not hit many words there. But if you pass the input in as data for various "random text" algorithms you might even get out something interesting.

Replies are listed 'Best First'.
Re: Re (tilly) 2: the secret of PI
by arhuman (Vicar) on May 04, 2001 at 17:03 UTC
    Using your excellent Math::Fleximal and a conversion of the 5000 first digits '0'..'9'->'a'..'z'
    I got several words (by matching them with my /usr/dict/words file)
    If I keep only the words with more than 3 char, I got :

    'buys'
    'coin'
    'dull'
    'fats'
    'feet'
    'pots'
    'test'
    'tint'
    'warn'
    'warp'
    'went'

    And last but not the least 'monk' !


    "Only Bad Coders Badly Code In Perl" (OBC2IP)

      Out of interest, how many digits are required to generate "perl"?

      John.
      --

        Note that since 26 is not divisible by 10, the characters will change dramatically with each new digit. So perl will appear at some point, then disappear when you add one more digit.

        (This calculation is not the same as working out what PI is in base 26. To do that you would need to rewrite the code to use Math::Fleximal and base 26 calculations everywhere.)