 ratvaluep - Maple Help

 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

 > $\mathrm{with}\left(\mathrm{padic}\right):$
 > $f≔75{x}^{3}+3{x}^{2}+8x+3$
 ${f}{≔}{75}{}{{x}}^{{3}}{+}{3}{}{{x}}^{{2}}{+}{8}{}{x}{+}{3}$ (1)
 > $\mathrm{Digitsp}≔13$
 ${\mathrm{Digitsp}}{≔}{13}$ (2)
 > $a≔\mathrm{rootp}\left(f,5\right)$
 ${a}{≔}{4}{}{{5}}^{{-2}}{+}{4}{}{{5}}^{{-1}}{+}{2}{}{5}{+}{3}{}{{5}}^{{2}}{+}{3}{}{{5}}^{{4}}{+}{3}{}{{5}}^{{5}}{+}{{5}}^{{6}}{+}{3}{}{{5}}^{{7}}{+}{4}{}{{5}}^{{8}}{+}{2}{}{{5}}^{{9}}{+}{O}{}\left({{5}}^{{10}}\right)$ (3)
 > $\mathrm{ratvaluep}\left(a,10\right)$
 $\frac{{6533399}}{{25}}$ (4)