[Next] [Prev] [_____] [Left] [Up] [Index] [Root]
Operations on p-adic Elements

Operations on p-adic Elements

Subsections

Generic Functions on Elements

+ a : FldLocElt -> FldLocElt
- a : FldLocElt -> FldLocElt
a + b : FldLocElt, FldLocElt -> FldLocElt
a - b : FldLocElt, FldLocElt -> FldLocElt
a * b : FldLocElt, FldLocElt -> FldLocElt
a / b : FldLocElt, FldLocElt -> FldLocElt
a ^ k : FldLocElt, RngIntElt -> FldLocElt
Parent(r) : RngElt -> Rng

Generic Predicates

IsOne(a) : FldLocElt -> BoolElt
IsZero(a) : FldLocElt -> BoolElt
IsMinusOne(a) : FldLocElt -> BoolElt
IsUnit(a) : FldLocElt -> BoolElt
a eq b : FldLocElt, FldLocElt -> BoolElt
a ne b : FldLocElt, FldLocElt -> BoolElt
a in F : FldLocElt, FldLoc -> BoolElt
a notin F : FldLocElt, FldLoc -> BoolElt

Other Functions

AssertAttribute(A, "Precision", n) : RngPad, MonStgElt, RngIntElt ->
Given a p-adic ring or field R, this procedure changes the default precision on elements created in R to n.
AbsolutePrecision(a) : RngLocElt -> RngIntElt
Given an element a in a p-adic ring or field, return the absolute precision to which a is stored. This is the largest number s such that the coefficient of p^(s - 1) of a is stored.
RelativePrecision(a) : RngLocElt -> RngIntElt
Given an element a in a p-adic ring or field, return the relative precision to which a is stored. This is the number of coefficients of a, starting from the first non-zero coefficient, and equals the difference of the absolute precision and the valuation of a.
Valuation(a) : RngLocElt -> RngIntElt
Given an element a in a p-adic ring or field, return the valuation of a, which is the smallest integer v such that the coefficient of p^v in the p-adic expansion of a is known and non-zero. If such v does not exist (which happens only if all known coefficients are zero), an error results (the valuation is infinite).
Sqrt(a) : FldLocElt -> FldLocElt
The square root of the non-zero element a from the local ring or field R, i.e., an element y of R such that y^2 = a. An error results if f is not a square.
Root(f, n) : FldLocElt, RngIntElt -> FldLocElt
The n-th root of the non-zero element f from the local ring or field R, i.e., an element y of R such that y^n = a. An error results if no such root exists in R.
Log(a) : FldLocElt -> RngIntElt
The p-adic logarithm of an element of a p-adic ring or field element. Note that log(p)=0.
Exp(f) : FldLocElt -> RngIntElt
The p-adic exponential of an element of a p-adic ring or field element.
[Next] [Prev] [_____] [Left] [Up] [Index] [Root]