Talk:P-Adic numbers, basic: Difference between revisions

From Rosetta Code
Content added Content deleted
 
Line 1: Line 1:
== Clarification Regarding Base ==
== Clarification Regarding Base ==


The examples use all kinds of different bases, including one example that uses base 10, which is not prime, resulting in an l-adic ring instead of a p-adic field! The specific example shown there happens to work, because the denominator in the fractions used is prime relative to the base, although the task description doesn't give any guidelines. I think a reasonable default guideline could be to copy the examples that use a p-adic field from the FreeBasic solution, which anyway appears to be the one that most other solutions translated.
The examples use all kinds of different bases, including one example that uses base 10, which is not prime, resulting in an l-adic ring instead of a p-adic field! The specific example shown there happens to work, because the denominator in the fractions used is prime relative to the base, although the task description doesn't give any guidelines. I think a reasonable default guideline could be to copy the examples that use a p-adic field from the FreeBasic solution, which anyway appears to be the one that most other solutions translated. --[[User:Adlai|Adlai]] ([[User talk:Adlai|talk]]) 07:19, 3 March 2021 (UTC)

Revision as of 07:19, 3 March 2021

Clarification Regarding Base

The examples use all kinds of different bases, including one example that uses base 10, which is not prime, resulting in an l-adic ring instead of a p-adic field! The specific example shown there happens to work, because the denominator in the fractions used is prime relative to the base, although the task description doesn't give any guidelines. I think a reasonable default guideline could be to copy the examples that use a p-adic field from the FreeBasic solution, which anyway appears to be the one that most other solutions translated. --Adlai (talk) 07:19, 3 March 2021 (UTC)