public class ExprRingFactory extends java.lang.Object implements edu.jas.structure.RingFactory<IExpr>
Modifier and Type | Field and Description |
---|---|
static ExprRingFactory |
CONST |
Constructor and Description |
---|
ExprRingFactory() |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring.
|
IExpr |
copy(IExpr c)
Create a copy of Element c.
|
IExpr |
fromInteger(java.math.BigInteger a)
Get the Element for a.
|
IExpr |
fromInteger(long a)
Get a BigRational element from a long.
|
java.util.List<IExpr> |
generators()
Get a list of the generating elements.
|
IExpr |
getONE()
Get the constant one for the MonoidElem.
|
IExpr |
getZERO()
Get the constant zero for the AbelianGroupElem.
|
boolean |
isAssociative()
Query if this monoid is associative.
|
boolean |
isCommutative()
Query if this monoid is commutative.
|
boolean |
isField()
Query if this ring is a field.
|
boolean |
isFinite()
Is this structure finite or infinite.
|
IExpr |
parse(java.io.Reader r)
Parse from Reader.
|
IExpr |
parse(java.lang.String s)
Parse from String.
|
IExpr |
random(int n)
Generate a random Element with size less equal to n.
|
IExpr |
random(int n,
java.util.Random random)
Generate a random Element with size less equal to n.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
static IExpr |
valueOf(long a)
Get a BigRational element from a long.
|
public static final ExprRingFactory CONST
public boolean isField()
isField
in interface edu.jas.structure.RingFactory<IExpr>
public java.math.BigInteger characteristic()
characteristic
in interface edu.jas.structure.RingFactory<IExpr>
public IExpr fromInteger(long a)
fromInteger
in interface edu.jas.structure.ElemFactory<IExpr>
a
- long.public static IExpr valueOf(long a)
a
- long.public IExpr getZERO()
edu.jas.structure.AbelianGroupFactory
getZERO
in interface edu.jas.structure.AbelianGroupFactory<IExpr>
public IExpr copy(IExpr c)
edu.jas.structure.ElemFactory
copy
in interface edu.jas.structure.ElemFactory<IExpr>
public IExpr fromInteger(java.math.BigInteger a)
edu.jas.structure.ElemFactory
fromInteger
in interface edu.jas.structure.ElemFactory<IExpr>
a
- java.math.BigInteger.public java.util.List<IExpr> generators()
edu.jas.structure.ElemFactory
generators
in interface edu.jas.structure.ElemFactory<IExpr>
public boolean isFinite()
edu.jas.structure.ElemFactory
isFinite
in interface edu.jas.structure.ElemFactory<IExpr>
public IExpr parse(java.lang.String s)
edu.jas.structure.ElemFactory
parse
in interface edu.jas.structure.ElemFactory<IExpr>
s
- String.public IExpr parse(java.io.Reader r)
edu.jas.structure.ElemFactory
parse
in interface edu.jas.structure.ElemFactory<IExpr>
r
- Reader.public IExpr random(int n)
edu.jas.structure.ElemFactory
random
in interface edu.jas.structure.ElemFactory<IExpr>
public IExpr random(int n, java.util.Random random)
edu.jas.structure.ElemFactory
random
in interface edu.jas.structure.ElemFactory<IExpr>
random
- is a source for random bits.public java.lang.String toScript()
edu.jas.structure.ElemFactory
toScript
in interface edu.jas.structure.ElemFactory<IExpr>
public IExpr getONE()
edu.jas.structure.MonoidFactory
getONE
in interface edu.jas.structure.MonoidFactory<IExpr>
public boolean isAssociative()
edu.jas.structure.MonoidFactory
isAssociative
in interface edu.jas.structure.MonoidFactory<IExpr>
public boolean isCommutative()
edu.jas.structure.MonoidFactory
isCommutative
in interface edu.jas.structure.MonoidFactory<IExpr>