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

Class Ring

source code

Represents a JAS polynomial ring: GenPolynomialRing.

Methods to create ideals and ideals with parametric coefficients.

Instance Methods [hide private]
 
__init__(self, ringstr="", ring=None, fast=False)
Ring constructor.
source code
 
variable_generators(self)
Define instance variables for generators.
source code
 
__str__(self)
Create a string representation.
source code
 
__eq__(self, other)
Test if two rings are equal.
source code
 
ideal(self, ringstr="", list=None)
Create an ideal.
source code
 
paramideal(self, ringstr="", list=None, gbsys=None)
Create an ideal in a polynomial ring with parameter coefficients.
source code
 
powerseriesRing(self)
Get a power series ring from this ring.
source code
 
gens(self)
Get list of generators of the polynomial ring.
source code
 
inject_variables(self)
Inject generators as variables into the main global namespace
source code
 
one(self)
Get the one of the polynomial ring.
source code
 
zero(self)
Get the zero of the polynomial ring.
source code
 
random(self, k=5, l=7, d=3, q=0.3)
Get a random polynomial.
source code
 
element(self, poly)
Create an element from a string or object.
source code
 
gcd(self, a, b)
Compute the greatest common divisor of a and b.
source code
 
squarefreeFactors(self, a)
Compute squarefree factors of polynomial.
source code
 
factors(self, a)
Compute irreducible factorization for modular, integer, rational number and algebriac number coefficients.
source code
 
factorsAbsolute(self, a)
Compute absolute irreducible factorization for (modular,) rational number coefficients.
source code
 
realRoots(self, a, eps=None)
Compute real roots of univariate polynomial.
source code
 
complexRoots(self, a, eps=None)
Compute complex roots of univariate polynomial.
source code
 
algebraicRoots(self, a, eps=None)
Algebraic real and Compute complex roots of univariate polynomial.
source code
 
rootRefine(self, a, eps=None)
Compute algebraic roots refinement.
source code
 
decimalRoots(self, a, eps=None)
Compute decimal approximation of real and complex roots of univariate polynomial.
source code
 
rootsOfUnity(self, a)
Roots of unity of real and complex algebraic numbers.
source code
 
rootReduce(self, a, b)
Root reduce of real and complex algebraic numbers.
source code
 
integrate(self, a)
Integrate rational function or power series.
source code
Static Methods [hide private]
 
getEngineGcd(r)
Get the polynomial gcd engine implementation.
source code
 
getEngineSqf(r)
Get the polynomial squarefree engine implementation.
source code
 
getEngineFactor(r)
Get the polynomial factorization engine implementation.
source code
Method Details [hide private]

__init__(self, ringstr="", ring=None, fast=False)
(Constructor)

source code 

Ring constructor.

ringstr string representation to be parsed. ring JAS ring object.

getEngineGcd(r)
Static Method

source code 

Get the polynomial gcd engine implementation.

r is the given polynomial ring.

getEngineSqf(r)
Static Method

source code 

Get the polynomial squarefree engine implementation.

r is the given polynomial ring.

getEngineFactor(r)
Static Method

source code 

Get the polynomial factorization engine implementation.

r is the given polynomial ring.

rootReduce(self, a, b)

source code 

Root reduce of real and complex algebraic numbers. Compute an extension field with a primitive element.