compute the sum of the first n terms of a p-adic number - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Group Theory : Numbers : P-adic : padic/ratvaluep

padic[ratvaluep] - compute the sum of the first n terms of a p-adic number

Calling Sequence

ratvaluep(ex, n)

Parameters

ex

-

p-adic number or rational number

n

-

positive integer

Description

• 

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.

Examples

withpadic:

f:=75x3+3x2+8x+3

f:=75x3+3x2+8x+3

(1)

Digitsp:=13

Digitsp:=13

(2)

a:=rootpf,5

a:=452+451+25+352+354+355+56+357+458+259+O510

(3)

ratvaluepa,10

653339925

(4)

See Also

padic, padic/functions, padic[evalp], padic[ordp], padic[rootp]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam