Peter Platzer's "Many Digits of Pi" MCODE - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: General Forum ( /forum-4.html)+--- Thread: Peter Platzer's "Many Digits of Pi" MCODE ( /thread-7864.html) |

Peter Platzer's "Many Digits of Pi" MCODE - Ángel Martin - 03-04-2017 07:39 AM
There were some folks interested in this subject back then when Peter posted it on the old forum (4915 digits of pi) that may still chime in here. I put Peter's code in the attached MOD file but it's not working so far. The execution hangs and nothing is written in the Q-RAM page. It's probably a transcription error on my part so I'll keep debugging looking for the glitch(es). Updated: the code seems to be working well now. Input parameters expected in stack as follows: ; Z : p - page number of start of MLDL ram to use ; Y : n - number of digits wanted ; X : base b in powers of 10 (less than 5 ) What I'm not sure about is how to read the results, once they're obtained of course. The description mentions each word being split in two halves, with the lower nibble coded in HEX and the higher nibble in decimal... (?) I was wondering if somehow I missed a follow-up to that article, with more details on that. Code: `Each intermediate result (the a(i)’s) are stored in 2 MLDL words ` Cheers, ÁM |