Post Reply 
Little explorations with HP calculators (no Prime)
10-31-2017, 05:50 PM (This post was last modified: 10-31-2017 05:51 PM by pier4r.)
Post: #245
RE: Little explorations with HP calculators (no Prime)
(10-31-2017 03:12 PM)Claudio L. Wrote:  Start with the equality. A=number, not necessarily integer. L=Floor(A) and H=ceil(A).

A/n=pi
A=pi*n

Therefore your L and H are:
L=floor(n*pi)
H=ceil(n*pi)

This means in general, L and H both skip in pi steps as you increase n, but after you round with floor/ceil you only move 3 units, leaving a remainder of (pi-3) that accumulates for the next iteration. Once that reminder accumulates to 1 you'll skip 4 instead of 3.
Turns out 1/(pi-3) = 7.06xxxx that's why you accumulate one unit every 7 iterations.

Nice idea, I should reflect on it to see if I can explain all the non-7-based skips.
For the next time I ask you if you could put it in spoilers though, like this:

Code:


spoilers below












below










I said below









almost














here: hugs

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Little explorations with HP calculators (no Prime) - pier4r - 10-31-2017 05:50 PM



User(s) browsing this thread: 2 Guest(s)