[back] [prev] [next] [index] [root]

 


QpSqrt

Computes the square root of an element in Q_p.

Syntax:

s := QpSqrt(k);

p-adic element
  k  
p-adic element
  s  

See also:  IsQp, Qp, QpElt, QpEltToQ, QpEltQp, QpPrec, QpExp, QpLog, QpPrime, QpValuation

Description:

This function returns the square root s of the element k of a p-adic field. If prec is the used precision, the result is correct modulo p^{prec}.


Example:


kash> F := Qp(3);
3-adic Field mod 3^20
kash> k := QpElt(F, 19);
1 + 2*3^2
kash> s := QpSqrt(k);
> 1 + 3^2 + 3^4 + 3^5 + 2*3^8 + 3^9 + 3^10 + 2*3^11 + 3^13 + 2*3^15 + 3^16 + 2*3\
^18 + 2*3^19 + O(3^20)


<- back[back] [prev] [next] [index] [root]