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.
withpadic:
f≔75x3+3x2+8x+3
Digitsp≔13
a≔rootpf,5
a≔45−2+45−1+25+352+354+355+56+357+458+259+O510
ratvaluepa,10
653339925
See Also
padic/functions
padic[evalp]
padic[ordp]
padic[rootp]
Download Help Document