Module jas :: Class RingElem
[hide private]
[frames] | no frames]

Class RingElem

source code

Proxy for JAS ring elements.

Methods to be used as + - * ** / %.

Instance Methods [hide private]
 
__init__(self, elem)
Constructor for ring element.
source code
 
__str__(self)
Create a string representation.
source code
 
zero(self)
Zero element of this ring.
source code
 
isZERO(self)
Test if this is the zero element of the ring.
source code
 
one(self)
One element of this ring.
source code
 
isONE(self)
Test if this is the one element of the ring.
source code
 
signum(self)
Get the sign of this element.
source code
 
__abs__(self)
Absolute value.
source code
 
__neg__(self)
Negative value.
source code
 
__pos__(self)
Positive value.
source code
 
coerce(self, other)
Coerce other to self.
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
 
__hash__(self)
Hash value.
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)
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
 
__float__(self)
Convert to Python float.
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
 
monic(self)
Monic polynomial.
source code
 
evaluate(self, a)
Evaluate at a for power series.
source code
 
integrate(self, a=0, r=None)
Integrate a power series with constant a or as rational function.
source code
 
differentiate(self, r=None)
Differentiate a power series.
source code
 
coefficients(self)
Get the coefficients of a polynomial.
source code
Method Details [hide private]

integrate(self, a=0, r=None)

source code 

Integrate a power series with constant a or as rational function.

a is the integration constant, r is for partial integration in variable r.

differentiate(self, r=None)

source code 

Differentiate a power series.

r is for partial differentiation in variable r.