Documentation of 'org.matheclipse.core.convert.JASIExpr' Java class
JASIExpr
org.matheclipse.core.convert

Class JASIExpr

  • Type Parameters:
    C -


    public class JASIExpr
    extends java.lang.Object
    Convert JAS objects from and to MathEclipse objects
    • Method Detail

      • factorTerms

        public java.lang.Object[] factorTerms(GenPolynomial<BigRational> A)
        BigInteger from BigRational coefficients. Represent as polynomial with BigInteger coefficients by multiplication with the gcd of the numerators and the lcm of the denominators of the BigRational coefficients.
        Parameters:
        A - polynomial with BigRational coefficients to be converted.
        Returns:
        Object[] with 3 entries: [0]->gcd [1]->lcm and [2]->polynomial with BigInteger coefficients.
      • getPolynomialRingFactory

        public GenPolynomialRing<IExpr> getPolynomialRingFactory()
        Returns:
        the fPolyFactory
      • integerFromRationalCoefficients

        public GenPolynomial<BigInteger> integerFromRationalCoefficients(GenPolynomial<BigRational> A)
        BigInteger from BigRational coefficients. Represent as polynomial with BigInteger coefficients by multiplication with the lcm of the numerators of the BigRational coefficients.
        Parameters:
        A - polynomial with BigRational coefficients to be converted.
        Returns:
        polynomial with BigInteger coefficients.
      • integerPoly2Expr

        public IExpr integerPoly2Expr(GenPolynomial<BigInteger> poly)
                               throws java.lang.ArithmeticException,
                                      java.lang.ClassCastException
        Convert a JAS integer polynomial to IExpr.
        Parameters:
        poly -
        Returns:
        Throws:
        java.lang.ArithmeticException
        java.lang.ClassCastException
      • complexPoly2Expr

        public IExpr complexPoly2Expr(GenPolynomial<Complex<BigRational>> poly)
                               throws java.lang.ArithmeticException,
                                      java.lang.ClassCastException
        Convert a JAS complex polynomial to IExpr.
        Parameters:
        poly -
        Returns:
        Throws:
        java.lang.ArithmeticException
        java.lang.ClassCastException
      • exprPoly2Expr

        public IAST exprPoly2Expr(GenPolynomial<IExpr> poly,
                                  IExpr variable)
                           throws java.lang.ArithmeticException,
                                  java.lang.ClassCastException
        Converts a JAS polynomial to a MathEclipse AST with head Plus
        Parameters:
        poly - a JAS polynomial
        variable -
        Returns:
        Throws:
        java.lang.ArithmeticException
        java.lang.ClassCastException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.