org.matheclipse.core.expression
Class ExprRingFactory
- java.lang.Object
-
- org.matheclipse.core.expression.ExprRingFactory
-
- All Implemented Interfaces:
- AbelianGroupFactory<IExpr>, ElemFactory<IExpr>, MonoidFactory<IExpr>, RingFactory<IExpr>, java.io.Serializable
public class ExprRingFactory extends java.lang.Object implements RingFactory<IExpr>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ExprRingFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.math.BigIntegercharacteristic()Characteristic of this ring.IExprcopy(IExpr c)Create a copy of Element c.IExprfromInteger(java.math.BigInteger a)Get the Element for a.IExprfromInteger(long a)Get a BigRational element from a long.java.util.List<IExpr>generators()Get a list of the generating elements.IExprgetONE()Get the constant one for the MonoidElem.IExprgetZERO()Get the constant zero for the AbelianGroupElem.booleanisAssociative()Query if this ring is associative.booleanisCommutative()Query if this monoid is commutative.booleanisField()Query if this ring is a field.booleanisFinite()Is this structure finite or infinite.IExprparse(java.io.Reader r)Parse from Reader.IExprparse(java.lang.String s)Parse from String.IExprrandom(int n)Generate a random Element with size less equal to n.IExprrandom(int n, java.util.Random random)Generate a random Element with size less equal to n.java.lang.StringtoScript()Get a scripting compatible string representation.static IExprvalueOf(long a)Get a BigRational element from a long.
-
-
-
Method Detail
-
isField
public boolean isField()
Query if this ring is a field.- Specified by:
isFieldin interfaceRingFactory<IExpr>- Returns:
- true.
-
characteristic
public java.math.BigInteger characteristic()
Characteristic of this ring.- Specified by:
characteristicin interfaceRingFactory<IExpr>- Returns:
- characteristic of this ring.
-
fromInteger
public IExpr fromInteger(long a)
Get a BigRational element from a long.- Specified by:
fromIntegerin interfaceElemFactory<IExpr>- Parameters:
a- long.- Returns:
- BigRational from a.
-
valueOf
public static IExpr valueOf(long a)
Get a BigRational element from a long.- Parameters:
a- long.- Returns:
- BigRational from a.
-
getZERO
public IExpr getZERO()
Description copied from interface:AbelianGroupFactoryGet the constant zero for the AbelianGroupElem.- Specified by:
getZEROin interfaceAbelianGroupFactory<IExpr>- Returns:
- 0.
-
copy
public IExpr copy(IExpr c)
Description copied from interface:ElemFactoryCreate a copy of Element c.- Specified by:
copyin interfaceElemFactory<IExpr>- Returns:
- a copy of c.
-
fromInteger
public IExpr fromInteger(java.math.BigInteger a)
Description copied from interface:ElemFactoryGet the Element for a.- Specified by:
fromIntegerin interfaceElemFactory<IExpr>- Parameters:
a- java.math.BigInteger.- Returns:
- element corresponding to a.
-
generators
public java.util.List<IExpr> generators()
Description copied from interface:ElemFactoryGet a list of the generating elements.- Specified by:
generatorsin interfaceElemFactory<IExpr>- Returns:
- list of generators for the algebraic structure.
-
isFinite
public boolean isFinite()
Description copied from interface:ElemFactoryIs this structure finite or infinite.- Specified by:
isFinitein interfaceElemFactory<IExpr>- Returns:
- true if this structure is finite, else false.
-
parse
public IExpr parse(java.lang.String s)
Description copied from interface:ElemFactoryParse from String.- Specified by:
parsein interfaceElemFactory<IExpr>- Parameters:
s- String.- Returns:
- a Element corresponding to s.
-
parse
public IExpr parse(java.io.Reader r)
Description copied from interface:ElemFactoryParse from Reader.- Specified by:
parsein interfaceElemFactory<IExpr>- Parameters:
r- Reader.- Returns:
- the next Element found on r.
-
random
public IExpr random(int n)
Description copied from interface:ElemFactoryGenerate a random Element with size less equal to n.- Specified by:
randomin interfaceElemFactory<IExpr>- Returns:
- a random element.
-
random
public IExpr random(int n, java.util.Random random)
Description copied from interface:ElemFactoryGenerate a random Element with size less equal to n.- Specified by:
randomin interfaceElemFactory<IExpr>random- is a source for random bits.- Returns:
- a random element.
-
toScript
public java.lang.String toScript()
Description copied from interface:ElemFactoryGet a scripting compatible string representation.- Specified by:
toScriptin interfaceElemFactory<IExpr>- Returns:
- script compatible representation for this ElemFactory.
-
getONE
public IExpr getONE()
Description copied from interface:MonoidFactoryGet the constant one for the MonoidElem.- Specified by:
getONEin interfaceMonoidFactory<IExpr>- Returns:
- 1.
-
isAssociative
public boolean isAssociative()
Description copied from interface:MonoidFactoryQuery if this ring is associative.- Specified by:
isAssociativein interfaceMonoidFactory<IExpr>- Returns:
- true if this monoid is associative, else false.
-
isCommutative
public boolean isCommutative()
Description copied from interface:MonoidFactoryQuery if this monoid is commutative.- Specified by:
isCommutativein interfaceMonoidFactory<IExpr>- Returns:
- true if this monoid is commutative, else false.
-
-
DMelt 3.0 © DataMelt by jWork.ORG