Monte-Carlo Pi
|
01-29-2022, 02:58 PM
Post: #21
|
|||
|
|||
RE: Monte-Carlo Pi
(01-29-2022 10:37 AM)Ángel Martin Wrote:(01-19-2022 09:07 PM)Gerson W. Barbosa Wrote: We can do some cheating to get an excellent result on the original HP-15C in a reasonable time by choosing proper seed and number of points: Although occasionally there appear some worse (-) results after an increase in the number of iterations, overall I see better (+) results. Perhaps I should test it with more seeds. seed = 0 1E3 3.2 1E4 3.1593 + 1E5 3.1412 + 1E6 3.141836 + 1E7 3.1414716 + seed = .1 1E3 3.184 1E4 3.122 + 1E5 3.14352 + 1E6 3.143728 - 1E7 3.1424616 + seed = .2 1E3 3.196 1E4 3.1348 + 1E5 3.14616 + 1E6 3.143196 + 1E7 3.14122036 + seed = .3 1E3 3.124 1E4 3.1404 + 1E5 3.13996 + 1E6 3.1452 - 1E7 3.1413036 + Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)