Ed S on Nostr: #bbcmicrobot REM BBP pi calculation like youtu.be/SPTzzSuBFlc T=TIME S=0:K=1 FOR I%=0 ...
#bbcmicrobot
REM BBP pi calculation like youtu.be/SPTzzSuBFlc
T=TIME
S=0:K=1
FOR I%=0 TO 72 STEP 8
S=S+K*(4/(I%+1)-2/(I%+4)-1/(I%+5)-1/(I%+6))
PRINT I%," ";S;" digit ";INTS
S=S-INTS
S=S*10:K=K*10/16
NEXT
PRINT (TIME-T)/100"s"
Published at
2024-03-22 21:02:58Event JSON
{
"id": "41e94ca83dafb87d3d976b3430c1ae0e6b749a569dbd5ff6e47421b1e55b0812",
"pubkey": "9c6db20bcebcdd7dde4f5ba5f4adcf627db47d7af2d2b6ee951c5fbbbbb1a210",
"created_at": 1711141378,
"kind": 1,
"tags": [
[
"t",
"bbcmicrobot"
],
[
"content-warning",
"a slice of pi (bbc basic)"
],
[
"proxy",
"https://mastodon.sdf.org/users/EdS/statuses/112141361405888175",
"activitypub"
]
],
"content": "#bbcmicrobot \nREM BBP pi calculation like youtu.be/SPTzzSuBFlc\nT=TIME\nS=0:K=1\nFOR I%=0 TO 72 STEP 8\nS=S+K*(4/(I%+1)-2/(I%+4)-1/(I%+5)-1/(I%+6))\nPRINT I%,\" \";S;\" digit \";INTS\nS=S-INTS\nS=S*10:K=K*10/16\nNEXT\nPRINT (TIME-T)/100\"s\"",
"sig": "019c9f50e410083181205fe78a2ecc932bac70005e20e7efba97621c1925ec238d2c94c2de50984776e608c14fb2d3c170c834ed60c72e897fc2e78f2184e10b"
}