Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Pi/Picat/pi.picat
Normal file
22
Task/Pi/Picat/pi.picat
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
go =>
|
||||
pi2(1,0,1,1,3,3,0),
|
||||
nl.
|
||||
|
||||
pi2(Q,R,T,K,N,L,C) =>
|
||||
if C == 50 then
|
||||
nl,
|
||||
pi2(Q,R,T,K,N,L,0)
|
||||
else
|
||||
if (4*Q + R-T) < (N*T) then
|
||||
print(N),
|
||||
P := 10*(R-N*T),
|
||||
pi2(Q*10, P, T, K, ((10*(3*Q+R)) div T)-10*N, L,C+1)
|
||||
else
|
||||
P := (2*Q+R)*L,
|
||||
M := (Q*(7*K)+2+(R*L)) div (T*L),
|
||||
H := L+2,
|
||||
J := K+ 1,
|
||||
pi2(Q*K, P, T*L, J, M, H, C)
|
||||
end
|
||||
end,
|
||||
nl.
|
||||
Loading…
Add table
Add a link
Reference in a new issue