[VA] SRC#006- Pi Day 2020 Special: A New Fast Way to Compute Pi
|
03-18-2020, 09:51 AM
Post: #16
|
|||
|
|||
RE: [VA] SRC#006- Pi Day 2020 Special: A New Fast Way to Compute Pi
.
(03-17-2020 07:43 PM)Valentin Albillo Wrote: As for fast computation of sin(x), these papers and link are interesting and relevant:Thanks for the pointers! Quote:I saw you mentioned my fast program here ...Understood, apologies, and I've added a note to that post. It seems to me that any strictly positive starting value less than pi will converge to pi - is that not so? About the wonderful and unexpected rnd/rnd code: Quote:I suggest you check what you keyed in, if there's a typo it certainly is on your side.Hmm. I must be missing something. Here's your posted code: Code: 1 DESTROY ALL @ RANDOMIZE 1 @ FOR K=1 TO 5 @ N=10^K @ S=0 Code: 10 INPUT K @ N=0 @ FOR I=1 TO K @ N=N-MOD(IROUND(RND/RND),2) @ NEXT I @ DISP 1-4*N/K Code: 10 FOR K=1 TO 7 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)