I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)

User talk:Danaj

From Rosetta Code

Wrong value for π[edit]

Oh the ignominy! Even 22/7 would have been more accurate... Thanks for catching this.

No worries, and it really has no impact on the output. I was just stumped for a second about the magic value. It should probably be done with a 'use constant PI => 3.141593;' at the top. Danaj (talk) 17:28, 5 September 2018 (UTC)

Prime conspiracy[edit]

I am possibly confused about your statement "using an array rather than a hash to store transitions". Is this what you had in mind? Prime_conspiracy.pl I benchmarked, and didn't see a difference. But if you have a faster version, definitely put it on RC... --SqrtNegInf (talk) 15:07, 27 October 2018 (UTC)

I commented on the gist. Would you recommend replacing the code or adding it as an alternative?
Danaj (talk) 18:00, 29 October 2018 (UTC)

ntheory question: Handling very large values with 'vecreduce'[edit]

Using 'ntheory', the exponential factorial is easily defined as vecreduce { $b ** $a } but for n=5 the result returned is 'Inf'. The straight calculation of 5**4**3**2 correctly returns a number that has 183231 digits. All this can be seen in context at Special factorials. Everything else works fine. Clearly, the fate of the planet does not hang in the balance, but still it would be satisfying to get a clean result out of 'ntheory' here. Lighting the Bat-signal, as I am not clear on how to proceed, and would appreciate any thoughts you may have on the topic. --SqrtNegInf (talk) 03:07, 9 April 2021 (UTC)