|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.Polynomial
public class Polynomial
Representação de Polinômio
Constructor Summary | |
---|---|
Polynomial(int grau,
short[] coeficientes,
FiniteField coefficientRing)
Construtor |
Method Summary | |
---|---|
boolean |
Coprime(Polynomial f,
Polynomial g)
Testa se f e g são coprimos |
int |
determineDegreeOfCoeficient(short[] coef)
Obtém grau do coeficiente coef |
Polynomial |
divideByCoeficient(Polynomial B,
short coeficient)
Divide por coeficiente |
FiniteField |
getCoefficientRing()
|
short |
getCoeficient(int degree)
Obtém coeficiente de grau degree |
short[] |
getCoeficients()
|
Polynomial |
getCopy()
Retorna uma cópia |
int |
getDegree()
|
Polynomial |
getInverseModPolynomial(Polynomial polMod)
Obtém inverso módulo um outro polinomio |
static Polynomial |
getSquare(Polynomial a)
Eleva a ao quadrado |
boolean |
isEmpty()
Testa se é polinômio nulo |
boolean |
isIrreducible()
Implementação do Algorimto de Ben-Or de teste de irredutibilidade polinomial. |
boolean |
isPrimitive()
|
static Polynomial |
mod(Polynomial y,
Polynomial g)
Módulo entre dois polinômios |
static Polynomial |
mult(Polynomial a,
Polynomial b)
Multiplica dois polinômios |
void |
setCoefficientRing(FiniteField coefficientRing)
|
void |
setCoeficients(short[] coeficients)
|
void |
setDegree(int degree)
|
static Polynomial |
sum(Polynomial y,
Polynomial g)
Soma dois polinômios |
java.lang.String |
toString()
|
java.lang.String |
toStringExport()
Imprime para exportação |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Polynomial(int grau, short[] coeficientes, FiniteField coefficientRing)
grau
- coeficientes
- coefficientRing
- Method Detail |
---|
public Polynomial getCopy()
public static Polynomial getSquare(Polynomial a)
a
-
public Polynomial getInverseModPolynomial(Polynomial polMod)
polMod
-
public Polynomial divideByCoeficient(Polynomial B, short coeficient)
B
- coeficient
-
public short getCoeficient(int degree)
degree
-
public boolean isIrreducible()
public boolean Coprime(Polynomial f, Polynomial g)
f
- g
-
public boolean isEmpty()
public static Polynomial mod(Polynomial y, Polynomial g)
y
- g
-
public static Polynomial mult(Polynomial a, Polynomial b)
a
- b
-
public static Polynomial sum(Polynomial y, Polynomial g)
y
- g
-
public boolean isPrimitive()
public short[] getCoeficients()
public void setCoeficients(short[] coeficients)
coeficients
- the coeficientes to setpublic int getDegree()
public void setDegree(int degree)
degree
- the degree to setpublic FiniteField getCoefficientRing()
public void setCoefficientRing(FiniteField coefficientRing)
coefficientRing
- public int determineDegreeOfCoeficient(short[] coef)
coef
-
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringExport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |