Calculation of pi on many machines
|
11-25-2020, 01:10 PM
(This post was last modified: 12-04-2020 11:17 AM by Gerson W. Barbosa.)
Post: #18
|
|||
|
|||
RE: Calculation of pi on many machines
This is an RPL version of the HP-42S program above:
Code:
# 8F62h, 258 bytes 51 decimal digits: 10.502 s 85 decimal digits: 32.557 s 153 decimal digits: 160.952 s 357 decimal digits: 4393.037 s (HP 50g) ——— PS: Actually, the RPL program above is based on one of my older formulae. The following program is slower, but it is in accordance with the formula I used in the RPN program: Code:
# 5CB1h, 301.5 bytes 51 decimal digits: 12.344 s 85 decimal digits: 42.373 s 153 decimal digits: 308.168 s (HP 50g) 1000 decimal digits: 2988.379 s (iPhone7, emulated HP 49g+, m48+) Algorithm: Code:
——— PPS: This is a longer version of the previous program, but it’s significantly faster for larger numbers of decimal digits (and even faster than the first program). Also, as in the previous program, all decimal digits are correct (actual digits, no roundings). Code:
# E567h, 354 bytes 51 decimal digits: 10.355 s 85 decimal digits: 31.200 s 153 decimal digits: 157.039 s 357 decimal digits: 3820.207 s (HP 50g) 1000 decimal digits: 2588.102 s (iPhone7, emulated HP 49g+, m48+) Algorithm: Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)