Next:
Coherent configurations
Up:
Rational integers and rational
Previous:
P_Valuation
P_ValuationRat
For a rational number
r
and a rational prime number
p
,
P_ValuationRat(r, p)
returns the value of the
p
-valuation of
r
. For example,
gap> P_ValuationRat(120/21, 7); -1