Talk:Digital root

From Rosetta Code

task change?

The task description seems to have changed. It's not entirely clear whether the task has changed.

Based on the initial task description and the initial text on the wikipedia page, this appeared to be a "sum the digits, repeat" task.

However, it now looks like a "mathematically equivalent to sum the digits" task. In other words, divide by 9 and find the remainder.

However, it's also possible (based on the language referred to on the wikipedia page) that we need an equality operation which compares its results modulo 9 (so that 9 equals 0).

That said, it's probably bad practice to define a task by reference to wikipedia. A wikipedia page can easily describe multiple distinct implementations and is expected to change over time.

So... I think that this task should be rephrased to clearly state what the goals are. The wikipedia references should be just references, and the task statement should be clear without them. --Rdm 13:42, 23 July 2012 (UTC)

The new interpretation of WP text is incorrect. Digital root of 9 is 9, while WP text only says it acts "as a kind of zero", not literally defining it to zero. Read the text carefully. Defs given in opening text and in the "Formal definition" section down were consistent, making digital roots of multiples of nines to be 9. --Ledrug 13:54, 23 July 2012 (UTC)

Author Name?

Two or more C++ entries contain the name of their author. Is this OK and good?

Only if it's taken from another source with permission and credit needs to be given. Otherwise we can use the wiki history to determine who authored what parts of the examples. --Mwn3d 14:55, 1 August 2012 (UTC)

Formulae made invisible by under-tested cosmetic edits at 20:25, 7 May 2016

Under-tested cosmetic edits made to the task page at 20:25, 7 May 2016 , including the injection of spaces around expressions in <math> tags, have left some or all of the task description formulae completely invisible to all browsers which display the graphic file version of formulae rather than processing the MathML (this is, in fact, the majority of browsers). The MediaWiki processor does not currently expect such spaces, and generates syntactically ill-formed HTML if they are introduced. Other aspects of these cosmetic edits may further compound the problem. Hout (talk) 11:40, 24 September 2016 (UTC)

Repaired 15 Oct 2016 Hout (talk) 13:31, 15 October 2016 (UTC)

The malbolge entry appears to actually work

I restored the malbolge entry, since it seems to work on - not that I like it of course, but we can't really ban languages just because they encroach on the unreadability of F# (tee hee) --Pete Lomax (talk) 19:08, 12 September 2021 (UTC)

I can, the 'code' is a direct copy from another website. 'Código sacado de' means Code taken from. I'll leave the link. The task asks for output, the solution provides none. If the author actually chooses to write code in this abomination for this site, well cross that if it happens, if he can.--Nigel Galloway (talk) 13:03, 13 September 2021 (UTC)