Okey, this is nothing I will explain or anything. It is just something seen and heard in the Game Maker forums. How to calculate an unlimited number of decimals to PI.
create:
CODE
step_n = 0
n=0
y=sqrt(2)-1
a=6-4*sqrt(2);
step:
CODE
step_n += 1
{
n=step_n
y=(1-sqrt(sqrt(1-y*y*y*y)))/(1+sqrt(sqrt(1-y*y*y*y)));
a=(a*(1+y)*(1+y)*(1+y)*(1+y))-y*(1+y+y*y)*(2*n+3)*(2*n+3)
}
Hope you can figure out which values to draw etc. Else, I might update the topic later and also explain some things... although I don't have the time right now.
.
Users logged in:
Comments
Loading comments...