ExprRingFactory
org.matheclipse.core.expression

Class ExprRingFactory

    • Constructor Detail

      • ExprRingFactory

        public ExprRingFactory()
    • Method Detail

      • isField

        public boolean isField()
        Query if this ring is a field.
        Specified by:
        isField in interface RingFactory<IExpr>
        Returns:
        true.
      • fromInteger

        public IExpr fromInteger(long a)
        Get a BigRational element from a long.
        Specified by:
        fromInteger in interface ElemFactory<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.
      • generators

        public List<IExpr> generators()
        Description copied from interface: ElemFactory
        Get a list of the generating elements.
        Specified by:
        generators in interface ElemFactory<IExpr>
        Returns:
        list of generators for the algebraic structure.
      • isFinite

        public boolean isFinite()
        Description copied from interface: ElemFactory
        Is this structure finite or infinite.
        Specified by:
        isFinite in interface ElemFactory<IExpr>
        Returns:
        true if this structure is finite, else false.
      • random

        public IExpr random(int n)
        Description copied from interface: ElemFactory
        Generate a random Element with size less equal to n.
        Specified by:
        random in interface ElemFactory<IExpr>
        Returns:
        a random element.
      • random

        public IExpr random(int n,           Random random)
        Description copied from interface: ElemFactory
        Generate a random Element with size less equal to n.
        Specified by:
        random in interface ElemFactory<IExpr>
        random - is a source for random bits.
        Returns:
        a random element.
      • toScript

        public String toScript()
        Description copied from interface: ElemFactory
        Get a scripting compatible string representation.
        Specified by:
        toScript in interface ElemFactory<IExpr>
        Returns:
        script compatible representation for this ElemFactory.
      • isAssociative

        public boolean isAssociative()
        Description copied from interface: MonoidFactory
        Query if this ring is associative.
        Specified by:
        isAssociative in interface MonoidFactory<IExpr>
        Returns:
        true if this monoid is associative, else false.
      • isCommutative

        public boolean isCommutative()
        Description copied from interface: MonoidFactory
        Query if this monoid is commutative.
        Specified by:
        isCommutative in interface MonoidFactory<IExpr>
        Returns:
        true if this monoid is commutative, else false.

SCaVis 2.1 © jWork.ORG