Calculation of pi on many machines
|
03-08-2021, 02:10 PM
Post: #21
|
|||
|
|||
RE: Calculation of pi on many machines
Very nice comparison! I especially like the inclusion of the Casio fx-6300G, as these old Casios are great to program (I sometimes use an old Casio to prototype an algorithm before implementing on an RPN calculator), and the "old world" models up through the fx-9700GE and cfx-9800G - i.e. the "Defm" models - have very easy-to-use indirect addressing, as demonstrated here. However, there is a bug you have to watch out for on the fx-6300G when using indirect addressing in combination with comparison tests:
http://dave.brittens.org/blog/fx-6300g-c...n-bug.html |
|||
03-09-2021, 08:13 AM
Post: #22
|
|||
|
|||
RE: Calculation of pi on many machines
(03-08-2021 02:10 PM)Dave Britten Wrote: ... there is a bug you have to watch out for on the fx-6300G when using indirect addressing in combination with comparison tests:What an excellent bug! Thanks for sharing your thorough investigation. |
|||
03-16-2022, 08:25 PM
Post: #23
|
|||
|
|||
RE: Calculation of pi on many machines
(03-08-2021 02:30 AM)berndpr Wrote: But I got another program from a japanese person (Hiro510) which is using different version of pi/4 approximations (like Leibniz, Machin, Klingenstirna, Gauss, Störmer, Takano Kikuo and 2 unknown). Not the same program or the same author, I think, but perhaps of interest: in my web travels I've just found a ruby program by "komasaru" which evaluates 8 different arctangent formulas: 1:Machin, 2:Klingenstierna, 3:Euler, 4:Euler(2) 5:Gauss, 6:Stormer, 7:Stormer(2), 8:Takano Looks like there are versions in other languages too - see here. |
|||
03-16-2022, 10:46 PM
Post: #24
|
|||
|
|||
RE: Calculation of pi on many machines
.
Hi, Benoit, (11-22-2020 08:05 PM)Benoit Maag Wrote: Not a new subject by a long shot, the attached PDF lists programs to calculate pi with many decimals on many machines and benchmarking their relative speeds [...] Thanks for the interesting document, I've downloaded it to my References folder. I initially understood that you'd use different algorithms for the various machines, but it was mostly the same one for all of them, which indeed is most useful for fair comparison among them. I'm pretty busy at the time and couldn't read it carefully right now (will do in a few days) but I've noticed that your DM42 program is almost the 41C's one verbatim, and so it doesn't include fairly obvious optimizations that can't apply to the 41C, for instance:
28 1E17, 29 / -> 28 RCL/ 04 31 1E17, 32 * -> 31 RCL* 04 47 1E17, 48 / -> 47 RCL/ 04 59 1E17, 60 * -> 59 RCL* 04 68 1E17, 69 * -> 68 RCL* 04 71 1E17, 72 / -> 71 RCL/ 04 Also, perhaps you would consider using the DM42 (HP42S) native mnemonics, i.e., ST+ X -> STO+ ST X, and so on. It would help clarity and make it easier to key in the program. If you do these changes, please tell us the new program size and running times. Quote:And if you have an HP-71B, Valentin has a 6 line program (!) at: Again, thanks for mentioning and including a link to my article, much appreciated. Regards. V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
09-30-2022, 01:04 AM
Post: #25
|
|||
|
|||
RE: Calculation of pi on many machines
(11-23-2020 01:01 AM)Gerson W. Barbosa Wrote: 7 seconds for 4900 digits on the iPhone 7 running Ron Knapp’s program (Free42). hi, thanks for sharing! is there a .raw format of this file? I tried to import into free42 on my ipad and android phone... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)