padic
ordp
the order of a p-adic number
valuep
the p-adic valuation of a p-adic number
Calling Sequence
Parameters
Description
Examples
ordp(a, p)
ordp(a)
valuep(a, p)
valuep(a)
a
-
rational number (2-argument case) or p-adic number (1-argument case)
p
prime number or positive integer greater than 1
The ordp command computes the p-adic order of the p-adic number a (evalp(a, p) in the 2-argument case), which is the degree of the leading term.
The valuep command computes the p-adic valuation of the p-adic number a (evalp(a, p) in the 2-argument case), which is 1/p^ordp(a).
For an explanation of the representation of p-adic numbers in Maple, see padic[evalp].
with⁡padic:
a≔234234234975
ordp⁡a,5
2
evalp⁡a,5,7
4⁢52+4⁢53+56+3⁢57+O⁡58
a≔evalp⁡a,5
a≔4⁢52+4⁢53+56+3⁢57+4⁢58+2⁢59+2⁢511+4⁢512+513+3⁢514+2⁢515+516
b≔evalp⁡−1a2,5
b≔4⁢5−4+4⁢5−3+2⁢5−2+4⁢5−1+4+2⁢5+4⁢53
ordp⁡a
ordp⁡b
−4
ordp⁡a⁢b,5
−2
valuep⁡a⁢b
52
valuep⁡ab,5
5-6
ordp⁡x−y2,5
ordp⁡−y2+x,5
valuep⁡x⁢y2,5
See Also
padic[evalp]
Download Help Document