AngouriMath

Navigation

← Back to list of members

Valuation​(AngouriMath.​Entity,​AngouriMath.​Entity)

 Method (no overloads)

Summary

The p-adic valuation of a whole number, valuation(n, p): the exponent
of the prime p in n. valuation(12, 2) is 2,
valuation(12, 5) is 0, and at n = 0 it is +oo.
https://github.com/asc-community/AngouriMath/issues/1450

Example

Console.WriteLine(MathS.NumberTheory.Valuation(12, 2).Evaled);

Prints
2

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online