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

 


QpLog

Computes the logarithm of an element in Q_p.

Syntax:

l := QpLog(k);

p-adic element
  k  
p-adic element
  l  

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

Description:

This function returns the logarithm l 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, 18);
2*3^2
kash> l := QpLog(k);
> 2*3 + 2*3^2 + 3^5 + 3^6 + 2*3^8 + 3^9 + 2*3^10 + 3^12 + 2*3^13 + 3^14 + 2*3^16\
 + 2*3^17 + O(3^21)


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