PAdicRationalConstructor(p, PADIC)¶
padic.spad line 327 [edit on github]
p: Integer
PADIC: PAdicIntegerCategory p
This is the category of stream-based representations of Qp
.
- 0: %
from AbelianMonoid
- 1: %
from MagmaWithUnit
- *: (%, %) -> %
from LeftModule %
- *: (%, Fraction Integer) -> %
from RightModule Fraction Integer
- *: (%, Integer) -> % if PADIC has LinearlyExplicitOver Integer
from RightModule Integer
- *: (%, PADIC) -> %
from RightModule PADIC
- *: (Fraction Integer, %) -> %
from LeftModule Fraction Integer
- *: (Integer, %) -> %
from AbelianGroup
- *: (NonNegativeInteger, %) -> %
from AbelianMonoid
- *: (PADIC, %) -> %
from LeftModule PADIC
- *: (PositiveInteger, %) -> %
from AbelianSemiGroup
- +: (%, %) -> %
from AbelianSemiGroup
- -: % -> %
from AbelianGroup
- -: (%, %) -> %
from AbelianGroup
- /: (%, %) -> %
from Field
- /: (PADIC, PADIC) -> %
from QuotientFieldCategory PADIC
- <=: (%, %) -> Boolean if PADIC has OrderedSet
from PartialOrder
- <: (%, %) -> Boolean if PADIC has OrderedSet
from PartialOrder
- >=: (%, %) -> Boolean if PADIC has OrderedSet
from PartialOrder
- >: (%, %) -> Boolean if PADIC has OrderedSet
from PartialOrder
- ^: (%, Integer) -> %
from DivisionRing
- ^: (%, NonNegativeInteger) -> %
from MagmaWithUnit
- ^: (%, PositiveInteger) -> %
from Magma
- abs: % -> % if PADIC has OrderedIntegralDomain
from OrderedRing
- annihilate?: (%, %) -> Boolean
from Rng
- antiCommutator: (%, %) -> %
- approximate: (%, Integer) -> Fraction Integer
approximate(x, n)
returns a rational numbery
such thaty = x (mod p^n)
.
- associates?: (%, %) -> Boolean
from EntireRing
- associator: (%, %, %) -> %
from NonAssociativeRng
- ceiling: % -> PADIC if PADIC has IntegerNumberSystem
from QuotientFieldCategory PADIC
- characteristic: () -> NonNegativeInteger
from NonAssociativeRing
- charthRoot: % -> Union(%, failed) if PADIC has PolynomialFactorizationExplicit and % has CharacteristicNonZero or PADIC has CharacteristicNonZero
- coerce: % -> %
from Algebra %
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: Fraction Integer -> %
from CoercibleFrom Fraction Integer
- coerce: Integer -> %
from NonAssociativeRing
- coerce: PADIC -> %
from Algebra PADIC
- coerce: Symbol -> % if PADIC has RetractableTo Symbol
from CoercibleFrom Symbol
- commutator: (%, %) -> %
from NonAssociativeRng
- conditionP: Matrix % -> Union(Vector %, failed) if PADIC has PolynomialFactorizationExplicit and % has CharacteristicNonZero
- continuedFraction: % -> ContinuedFraction Fraction Integer
continuedFraction(x)
converts thep
-adic rational numberx
to a continued fraction.
- convert: % -> DoubleFloat if PADIC has RealConstant
from ConvertibleTo DoubleFloat
- convert: % -> Float if PADIC has RealConstant
from ConvertibleTo Float
- convert: % -> InputForm if PADIC has ConvertibleTo InputForm
from ConvertibleTo InputForm
- convert: % -> Pattern Float if PADIC has ConvertibleTo Pattern Float
from ConvertibleTo Pattern Float
- convert: % -> Pattern Integer if PADIC has ConvertibleTo Pattern Integer
from ConvertibleTo Pattern Integer
- D: % -> % if PADIC has DifferentialRing
from DifferentialRing
- D: (%, List Symbol) -> % if PADIC has PartialDifferentialRing Symbol
- D: (%, List Symbol, List NonNegativeInteger) -> % if PADIC has PartialDifferentialRing Symbol
- D: (%, NonNegativeInteger) -> % if PADIC has DifferentialRing
from DifferentialRing
- D: (%, PADIC -> PADIC) -> %
from DifferentialExtension PADIC
- D: (%, PADIC -> PADIC, NonNegativeInteger) -> %
from DifferentialExtension PADIC
- D: (%, Symbol) -> % if PADIC has PartialDifferentialRing Symbol
- D: (%, Symbol, NonNegativeInteger) -> % if PADIC has PartialDifferentialRing Symbol
- denom: % -> PADIC
from QuotientFieldCategory PADIC
- denominator: % -> %
from QuotientFieldCategory PADIC
- differentiate: % -> % if PADIC has DifferentialRing
from DifferentialRing
- differentiate: (%, List Symbol) -> % if PADIC has PartialDifferentialRing Symbol
- differentiate: (%, List Symbol, List NonNegativeInteger) -> % if PADIC has PartialDifferentialRing Symbol
- differentiate: (%, NonNegativeInteger) -> % if PADIC has DifferentialRing
from DifferentialRing
- differentiate: (%, PADIC -> PADIC) -> %
from DifferentialExtension PADIC
- differentiate: (%, PADIC -> PADIC, NonNegativeInteger) -> %
from DifferentialExtension PADIC
- differentiate: (%, Symbol) -> % if PADIC has PartialDifferentialRing Symbol
- differentiate: (%, Symbol, NonNegativeInteger) -> % if PADIC has PartialDifferentialRing Symbol
- divide: (%, %) -> Record(quotient: %, remainder: %)
from EuclideanDomain
- euclideanSize: % -> NonNegativeInteger
from EuclideanDomain
- eval: (%, Equation PADIC) -> % if PADIC has Evalable PADIC
from Evalable PADIC
- eval: (%, List Equation PADIC) -> % if PADIC has Evalable PADIC
from Evalable PADIC
- eval: (%, List PADIC, List PADIC) -> % if PADIC has Evalable PADIC
from InnerEvalable(PADIC, PADIC)
- eval: (%, List Symbol, List PADIC) -> % if PADIC has InnerEvalable(Symbol, PADIC)
from InnerEvalable(Symbol, PADIC)
- eval: (%, PADIC, PADIC) -> % if PADIC has Evalable PADIC
from InnerEvalable(PADIC, PADIC)
- eval: (%, Symbol, PADIC) -> % if PADIC has InnerEvalable(Symbol, PADIC)
from InnerEvalable(Symbol, PADIC)
- expressIdealMember: (List %, %) -> Union(List %, failed)
from PrincipalIdealDomain
- exquo: (%, %) -> Union(%, failed)
from EntireRing
- extendedEuclidean: (%, %) -> Record(coef1: %, coef2: %, generator: %)
from EuclideanDomain
- extendedEuclidean: (%, %, %) -> Union(Record(coef1: %, coef2: %), failed)
from EuclideanDomain
- factorPolynomial: SparseUnivariatePolynomial % -> Factored SparseUnivariatePolynomial % if PADIC has PolynomialFactorizationExplicit
- factorSquareFreePolynomial: SparseUnivariatePolynomial % -> Factored SparseUnivariatePolynomial % if PADIC has PolynomialFactorizationExplicit
- floor: % -> PADIC if PADIC has IntegerNumberSystem
from QuotientFieldCategory PADIC
- fractionPart: % -> %
from QuotientFieldCategory PADIC
- gcdPolynomial: (SparseUnivariatePolynomial %, SparseUnivariatePolynomial %) -> SparseUnivariatePolynomial %
- init: % if PADIC has StepThrough
from StepThrough
- inv: % -> %
from DivisionRing
- latex: % -> String
from SetCategory
- lcmCoef: (%, %) -> Record(llcm_res: %, coeff1: %, coeff2: %)
from LeftOreRing
- leftPower: (%, NonNegativeInteger) -> %
from MagmaWithUnit
- leftPower: (%, PositiveInteger) -> %
from Magma
- leftRecip: % -> Union(%, failed)
from MagmaWithUnit
- map: (PADIC -> PADIC, %) -> %
from FullyEvalableOver PADIC
- max: (%, %) -> % if PADIC has OrderedSet
from OrderedSet
- min: (%, %) -> % if PADIC has OrderedSet
from OrderedSet
- multiEuclidean: (List %, %) -> Union(List %, failed)
from EuclideanDomain
- negative?: % -> Boolean if PADIC has OrderedIntegralDomain
from OrderedRing
- nextItem: % -> Union(%, failed) if PADIC has StepThrough
from StepThrough
- numer: % -> PADIC
from QuotientFieldCategory PADIC
- numerator: % -> %
from QuotientFieldCategory PADIC
- one?: % -> Boolean
from MagmaWithUnit
- opposite?: (%, %) -> Boolean
from AbelianMonoid
- patternMatch: (%, Pattern Float, PatternMatchResult(Float, %)) -> PatternMatchResult(Float, %) if PADIC has PatternMatchable Float
from PatternMatchable Float
- patternMatch: (%, Pattern Integer, PatternMatchResult(Integer, %)) -> PatternMatchResult(Integer, %) if PADIC has PatternMatchable Integer
from PatternMatchable Integer
- plenaryPower: (%, PositiveInteger) -> %
from NonAssociativeAlgebra PADIC
- positive?: % -> Boolean if PADIC has OrderedIntegralDomain
from OrderedRing
- principalIdeal: List % -> Record(coef: List %, generator: %)
from PrincipalIdealDomain
- quo: (%, %) -> %
from EuclideanDomain
- recip: % -> Union(%, failed)
from MagmaWithUnit
- reducedSystem: (Matrix %, Vector %) -> Record(mat: Matrix Integer, vec: Vector Integer) if PADIC has LinearlyExplicitOver Integer
- reducedSystem: (Matrix %, Vector %) -> Record(mat: Matrix PADIC, vec: Vector PADIC)
from LinearlyExplicitOver PADIC
- reducedSystem: Matrix % -> Matrix Integer if PADIC has LinearlyExplicitOver Integer
- reducedSystem: Matrix % -> Matrix PADIC
from LinearlyExplicitOver PADIC
- rem: (%, %) -> %
from EuclideanDomain
- removeZeroes: % -> %
removeZeroes(x)
removes leading zeroes from the representation of thep
-adic rationalx
. Ap
-adic rational is represented by (1) an exponent and (2) ap
-adic integer which may have leading zero digits. When thep
-adic integer has a leading zero digit, a ‘leading zero’ is removed from thep
-adic rational as follows: the number is rewritten by increasing the exponent by 1 and dividing thep
-adic integer byp
. Note:removeZeroes(f)
removes all leading zeroes fromf
.
- removeZeroes: (Integer, %) -> %
removeZeroes(n, x)
removes up ton
leading zeroes from thep
-adic rationalx
.
- retract: % -> Fraction Integer if PADIC has RetractableTo Integer
from RetractableTo Fraction Integer
- retract: % -> Integer if PADIC has RetractableTo Integer
from RetractableTo Integer
- retract: % -> PADIC
from RetractableTo PADIC
- retract: % -> Symbol if PADIC has RetractableTo Symbol
from RetractableTo Symbol
- retractIfCan: % -> Union(Fraction Integer, failed) if PADIC has RetractableTo Integer
from RetractableTo Fraction Integer
- retractIfCan: % -> Union(Integer, failed) if PADIC has RetractableTo Integer
from RetractableTo Integer
- retractIfCan: % -> Union(PADIC, failed)
from RetractableTo PADIC
- retractIfCan: % -> Union(Symbol, failed) if PADIC has RetractableTo Symbol
from RetractableTo Symbol
- rightPower: (%, NonNegativeInteger) -> %
from MagmaWithUnit
- rightPower: (%, PositiveInteger) -> %
from Magma
- rightRecip: % -> Union(%, failed)
from MagmaWithUnit
- sample: %
from AbelianMonoid
- sign: % -> Integer if PADIC has OrderedIntegralDomain
from OrderedRing
- sizeLess?: (%, %) -> Boolean
from EuclideanDomain
- smaller?: (%, %) -> Boolean if PADIC has Comparable
from Comparable
- solveLinearPolynomialEquation: (List SparseUnivariatePolynomial %, SparseUnivariatePolynomial %) -> Union(List SparseUnivariatePolynomial %, failed) if PADIC has PolynomialFactorizationExplicit
- squareFree: % -> Factored %
- squareFreePart: % -> %
- squareFreePolynomial: SparseUnivariatePolynomial % -> Factored SparseUnivariatePolynomial % if PADIC has PolynomialFactorizationExplicit
- subtractIfCan: (%, %) -> Union(%, failed)
- unit?: % -> Boolean
from EntireRing
- unitCanonical: % -> %
from EntireRing
- unitNormal: % -> Record(unit: %, canonical: %, associate: %)
from EntireRing
- wholePart: % -> PADIC
from QuotientFieldCategory PADIC
- zero?: % -> Boolean
from AbelianMonoid
Algebra %
Algebra PADIC
BiModule(%, %)
BiModule(Fraction Integer, Fraction Integer)
BiModule(PADIC, PADIC)
CharacteristicNonZero if PADIC has CharacteristicNonZero
CoercibleFrom Fraction Integer if PADIC has RetractableTo Integer
CoercibleFrom Integer if PADIC has RetractableTo Integer
CoercibleFrom PADIC
CoercibleFrom Symbol if PADIC has RetractableTo Symbol
Comparable if PADIC has Comparable
ConvertibleTo DoubleFloat if PADIC has RealConstant
ConvertibleTo Float if PADIC has RealConstant
ConvertibleTo InputForm if PADIC has ConvertibleTo InputForm
ConvertibleTo Pattern Float if PADIC has ConvertibleTo Pattern Float
ConvertibleTo Pattern Integer if PADIC has ConvertibleTo Pattern Integer
DifferentialExtension PADIC
DifferentialRing if PADIC has DifferentialRing
Eltable(PADIC, %) if PADIC has Eltable(PADIC, PADIC)
Evalable PADIC if PADIC has Evalable PADIC
FullyEvalableOver PADIC
FullyLinearlyExplicitOver PADIC
FullyPatternMatchable PADIC
InnerEvalable(PADIC, PADIC) if PADIC has Evalable PADIC
InnerEvalable(Symbol, PADIC) if PADIC has InnerEvalable(Symbol, PADIC)
LeftModule PADIC
LinearlyExplicitOver Integer if PADIC has LinearlyExplicitOver Integer
LinearlyExplicitOver PADIC
Module %
Module PADIC
NonAssociativeAlgebra Fraction Integer
NonAssociativeAlgebra PADIC
OrderedAbelianGroup if PADIC has OrderedIntegralDomain
OrderedAbelianMonoid if PADIC has OrderedIntegralDomain
OrderedAbelianSemiGroup if PADIC has OrderedIntegralDomain
OrderedCancellationAbelianMonoid if PADIC has OrderedIntegralDomain
OrderedIntegralDomain if PADIC has OrderedIntegralDomain
OrderedRing if PADIC has OrderedIntegralDomain
OrderedSet if PADIC has OrderedSet
PartialDifferentialRing Symbol if PADIC has PartialDifferentialRing Symbol
PartialOrder if PADIC has OrderedSet
Patternable PADIC
PatternMatchable Float if PADIC has PatternMatchable Float
PatternMatchable Integer if PADIC has PatternMatchable Integer
PolynomialFactorizationExplicit if PADIC has PolynomialFactorizationExplicit
QuotientFieldCategory PADIC
RealConstant if PADIC has RealConstant
RetractableTo Fraction Integer if PADIC has RetractableTo Integer
RetractableTo Integer if PADIC has RetractableTo Integer
RetractableTo PADIC
RetractableTo Symbol if PADIC has RetractableTo Symbol
RightModule Integer if PADIC has LinearlyExplicitOver Integer
RightModule PADIC
StepThrough if PADIC has StepThrough