padic
ratvaluep
compute the sum of the first n terms of a p-adic number
Calling Sequence
Parameters
Description
Examples
ratvaluep(ex, n)
ex
-
p-adic number or rational number
n
positive integer
The function ratvaluep returns a rational number which is the sum of the first n terms of the p-adic number ex. If ex is a rational number then it returns ex itself.
See padic[evalp] for an explanation of the representation of p-adic numbers in Maple.
The command with(padic,ratvaluep) allows the use of the abbreviated form of this command.
with⁡padic:
f≔75⁢x3+3⁢x2+8⁢x+3
Digitsp≔13
a≔rootp⁡f,5
a≔4⁢5−2+4⁢5−1+2⁢5+3⁢52+3⁢54+3⁢55+56+3⁢57+4⁢58+2⁢59+O⁡510
ratvaluep⁡a,10
653339925
See Also
padic/functions
padic[evalp]
padic[ordp]
padic[rootp]
Download Help Document