Proxy for JAS ring elements.
Methods to be used as + - * ** / %.
|
__init__(self,
elem)
Constructor for ring element. |
source code
|
|
|
__str__(self)
Create a string representation. |
source code
|
|
|
|
|
isZERO(self)
Test if this is the zero element of the ring. |
source code
|
|
|
|
|
isONE(self)
Test if this is the one element of the ring. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
isFactory(self)
Test if this is itself a ring factory. |
source code
|
|
|
isPolynomial(self)
Test if this is a polynomial. |
source code
|
|
|
__cmp__(self,
other)
Compare two ring elements. |
source code
|
|
|
|
|
|
|
__mul__(self,
other)
Multiply two ring elements. |
source code
|
|
|
__rmul__(self,
other)
Reverse multiply two ring elements. |
source code
|
|
|
__add__(self,
other)
Add two ring elements. |
source code
|
|
|
__radd__(self,
other)
Reverse add two ring elements. |
source code
|
|
|
__sub__(self,
other)
Subtract two ring elements. |
source code
|
|
|
__rsub__(self,
other)
Reverse subtract two ring elements. |
source code
|
|
|
__div__(self,
other)
Divide two ring elements. |
source code
|
|
|
__rdiv__(self,
other)
Reverse divide two ring elements. |
source code
|
|
|
__mod__(self,
other)
Modular remainder of two ring elements. |
source code
|
|
|
__xor__(self,
other)
Can not be used as power. |
source code
|
|
|
__pow__(self,
other,
n=None)
Power of this to other. |
source code
|
|
|
__eq__(self,
other)
Test if two ring elements are equal. |
source code
|
|
|
__ne__(self,
other)
Test if two ring elements are not equal. |
source code
|
|
|
|
|
factory(self)
Get the factory of this element. |
source code
|
|
|
gens(self)
Get the generators for the factory of this element. |
source code
|
|
|
inject_variables(self)
Inject generators as variables into the main global namespace |
source code
|
|
|
|
|
|
|
evaluate(self,
a)
Evaluate at a for power series or polynomial. |
source code
|
|
|
integrate(self,
a=0,
r=None)
Integrate a power series or rational function with constant a. |
source code
|
|
|
|
|
|
|
gcd(self,
b)
Compute the greatest common divisor of this/self and b. |
source code
|
|
|
squarefreeFactors(self)
Compute squarefree factors of polynomial. |
source code
|
|
|
factors(self)
Compute irreducible factorization for modular, integer, rational
number and algebriac number coefficients. |
source code
|
|
|
factorsAbsolute(self)
Compute absolute irreducible factorization for (modular,) rational
number coefficients. |
source code
|
|
|
realRoots(self,
eps=None)
Compute real roots of univariate polynomial. |
source code
|
|
|
complexRoots(self,
eps=None)
Compute complex roots of univariate polynomial. |
source code
|
|
|
|
|
rootRefine(self,
eps=None)
Compute algebraic roots refinement. |
source code
|
|
|
decimalRoots(self,
eps=None)
Compute decimal approximation of real and complex roots of univariate
polynomial. |
source code
|
|
|
rootsOfUnity(self)
Roots of unity of real and complex algebraic numbers. |
source code
|
|
|
|
|
coefficients(self)
Get the coefficients of a polynomial. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base_ring(self)
Coefficient ring of a polynomial. |
source code
|
|
|
is_field(self)
Test if this RingElem is field. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|