public abstract class PerisicField extends Object implements Field<PerisicFieldElement>
Field
using
classes from com.perisic.ring
Modifier and Type | Field and Description |
---|---|
static PerisicField |
Polynomials
A universal polynomial field over the rationals.
|
static PerisicField |
Q
Imports the rationals.
|
static PerisicField |
QPolynomials
A universal polynomial field, with quotient polynomials over the rationals.
|
Modifier and Type | Method and Description |
---|---|
PerisicFieldElement |
create(int i)
Map an integer into this field.
|
PerisicFieldElement |
getOne() |
Class<? extends FieldElement<PerisicFieldElement>> |
getRuntimeClass() |
PerisicFieldElement |
getZero() |
PerisicFieldElement |
map(String str)
Parse some string, and map it into this field
|
static PerisicFieldElement |
rational(String rational)
Parse some string as a rational, and map it into this field
|
public static final PerisicField Q
Ring.Q
public static final PerisicField Polynomials
public static final PerisicField QPolynomials
public PerisicFieldElement getZero()
getZero
in interface Field<PerisicFieldElement>
public PerisicFieldElement getOne()
getOne
in interface Field<PerisicFieldElement>
public Class<? extends FieldElement<PerisicFieldElement>> getRuntimeClass()
getRuntimeClass
in interface Field<PerisicFieldElement>
public PerisicFieldElement create(int i)
public PerisicFieldElement map(String str)
str
- a string representation recognized by the underlying Ring
str
public static PerisicFieldElement rational(String rational)
rational
- a string representation recognized by the underlying Ring.Q
rational