Post AScRPZmNVkGFhXOvYm by xpil@fosstodon.org
(DIR) More posts by xpil@fosstodon.org
(DIR) Post #AScRPZmNVkGFhXOvYm by xpil@fosstodon.org
2023-02-12T23:34:17Z
0 likes, 0 repeats
Puzzle time!Can you tell, from the top of your head (and without executing the code - just by looking at it), what the script output will be as the `iterations` variable approaches infinity?(yeah, yeah, I know, it will take forever to run so please assume you have a *really* fast computer)
(DIR) Post #AScRPaL7Qa3BRHefi4 by wolf480pl@mstdn.io
2023-02-12T23:47:32Z
0 likes, 0 repeats
@xpil e?
(DIR) Post #AScSrRG6spEbL19pqq by xpil@fosstodon.org
2023-02-13T00:01:22Z
0 likes, 0 repeats
@wolf480pl Almost correct. Just divide your answer by e and multiply by π and you're done :)
(DIR) Post #AScUbrb7O88MIkgWqO by wolf480pl@mstdn.io
2023-02-13T00:22:53Z
0 likes, 0 repeats
@xpil yeah I figured after executing the first few steps....Though there's a more interesting way to get from my answer to the correct one:Take base-answer logarithm of -1 and divide it by √-1