C
- public class JASConvert<C extends edu.jas.structure.RingElem<C>>
extends java.lang.Object
Constructor and Description |
---|
JASConvert(IExpr variable,
edu.jas.structure.RingFactory<C> ringFactory) |
JASConvert(java.util.List<? extends IExpr> variablesList,
edu.jas.structure.RingFactory<C> ringFactory) |
JASConvert(java.util.List<? extends IExpr> variablesList,
edu.jas.structure.RingFactory<C> ringFactory,
edu.jas.poly.TermOrder termOrder) |
Modifier and Type | Method and Description |
---|---|
IAST |
algebraicNumber2Expr(edu.jas.poly.AlgebraicNumber<edu.jas.arith.BigRational> coeff) |
IExpr |
complexPoly2Expr(edu.jas.poly.GenPolynomial<edu.jas.poly.Complex<edu.jas.arith.BigRational>> poly)
Convert a JAS complex polynomial to
IExpr . |
edu.jas.poly.GenPolynomial<C> |
expr2JAS(IExpr exprPoly,
boolean numeric2Rational) |
java.lang.Object[] |
factorTerms(edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> A)
BigInteger from BigRational coefficients.
|
edu.jas.poly.GenPolynomialRing<C> |
getPolynomialRingFactory() |
edu.jas.poly.GenPolynomial<edu.jas.arith.BigInteger> |
integerFromRationalCoefficients(edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> A)
BigInteger from BigRational coefficients.
|
IExpr |
integerPoly2Expr(edu.jas.poly.GenPolynomial<edu.jas.arith.BigInteger> poly)
Convert a JAS integer polynomial to
IExpr . |
IAST |
integral2Expr(edu.jas.integrate.Integral<edu.jas.arith.BigRational> integral)
Convert a jas
Integral into a matheclipse expression |
static IComplex |
jas2Complex(edu.jas.poly.Complex<edu.jas.arith.BigRational> c) |
static INumber |
jas2Numeric(edu.jas.poly.Complex<edu.jas.arith.BigRational> c,
double epsilon) |
static INumber |
jas2Numeric(org.apache.commons.math4.complex.Complex c,
double epsilon) |
IAST |
logIntegral2Expr(edu.jas.integrate.LogIntegral<edu.jas.arith.BigRational> logIntegral)
Convert a jas
LogIntegral into a matheclipse expression |
boolean |
monomialToExpr(edu.jas.poly.AlgebraicNumber<edu.jas.arith.BigRational> coeff,
edu.jas.poly.ExpVector exp,
IAST monomTimes) |
boolean |
monomialToExpr(edu.jas.arith.BigInteger coeff,
edu.jas.poly.ExpVector exp,
IAST monomTimes) |
boolean |
monomialToExpr(edu.jas.arith.BigRational coeff,
edu.jas.poly.ExpVector exp,
IAST monomTimes) |
boolean |
monomialToExpr(edu.jas.poly.Complex<edu.jas.arith.BigRational> coeff,
edu.jas.poly.ExpVector exp,
IAST monomTimes) |
edu.jas.poly.GenPolynomial<C> |
numericExpr2JAS(IExpr exprPoly)
Convert the given expression into a
JAS polynomial.
|
static edu.jas.arith.ModIntegerRing |
option2ModIntegerRing(ISignedNumber option) |
IAST |
polyAlgebraicNumber2Expr(edu.jas.poly.GenPolynomial<edu.jas.poly.AlgebraicNumber<edu.jas.arith.BigRational>> poly) |
IAST |
quotIntegral2Expr(edu.jas.integrate.QuotIntegral<edu.jas.arith.BigRational> integral)
Convert a jas
Integral into a matheclipse expression |
static java.lang.Object[] |
rationalFromRationalCoefficientsFactor(edu.jas.poly.GenPolynomialRing<edu.jas.arith.BigRational> fac,
edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> A)
BigRational from BigRational coefficients.
|
IAST |
rationalPoly2Expr(edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> poly)
Converts a JAS
polynomial to a MathEclipse AST with head
Plus |
public JASConvert(java.util.List<? extends IExpr> variablesList, edu.jas.structure.RingFactory<C> ringFactory)
public edu.jas.poly.GenPolynomial<C> expr2JAS(IExpr exprPoly, boolean numeric2Rational) throws JASConversionException
JASConversionException
public edu.jas.poly.GenPolynomial<C> numericExpr2JAS(IExpr exprPoly) throws JASConversionException
INum
double values are internally converted to IFractions
and converte into the pokynomial structure.exprPoly
- JASConversionException
public java.lang.Object[] factorTerms(edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> A)
A
- polynomial with BigRational coefficients to be converted.public edu.jas.poly.GenPolynomialRing<C> getPolynomialRingFactory()
public edu.jas.poly.GenPolynomial<edu.jas.arith.BigInteger> integerFromRationalCoefficients(edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> A)
A
- polynomial with BigRational coefficients to be converted.public IExpr integerPoly2Expr(edu.jas.poly.GenPolynomial<edu.jas.arith.BigInteger> poly) throws java.lang.ArithmeticException, java.lang.ClassCastException
IExpr
.poly
- java.lang.ArithmeticException
java.lang.ClassCastException
public boolean monomialToExpr(edu.jas.arith.BigInteger coeff, edu.jas.poly.ExpVector exp, IAST monomTimes)
public IExpr complexPoly2Expr(edu.jas.poly.GenPolynomial<edu.jas.poly.Complex<edu.jas.arith.BigRational>> poly) throws java.lang.ArithmeticException, java.lang.ClassCastException
IExpr
.poly
- java.lang.ArithmeticException
java.lang.ClassCastException
public boolean monomialToExpr(edu.jas.poly.Complex<edu.jas.arith.BigRational> coeff, edu.jas.poly.ExpVector exp, IAST monomTimes)
public IAST integral2Expr(edu.jas.integrate.Integral<edu.jas.arith.BigRational> integral)
Integral
into a matheclipse expressionintegral
- the JAS Integralpublic IAST logIntegral2Expr(edu.jas.integrate.LogIntegral<edu.jas.arith.BigRational> logIntegral)
LogIntegral
into a matheclipse expressionlogIntegral
- the JAS LogIntegralpublic IAST rationalPoly2Expr(edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> poly) throws java.lang.ArithmeticException, java.lang.ClassCastException
Plus
poly
- a JAS polynomialvariable
- java.lang.ArithmeticException
java.lang.ClassCastException
public boolean monomialToExpr(edu.jas.arith.BigRational coeff, edu.jas.poly.ExpVector exp, IAST monomTimes)
public IAST polyAlgebraicNumber2Expr(edu.jas.poly.GenPolynomial<edu.jas.poly.AlgebraicNumber<edu.jas.arith.BigRational>> poly) throws java.lang.ArithmeticException, java.lang.ClassCastException
java.lang.ArithmeticException
java.lang.ClassCastException
public boolean monomialToExpr(edu.jas.poly.AlgebraicNumber<edu.jas.arith.BigRational> coeff, edu.jas.poly.ExpVector exp, IAST monomTimes)
public IAST algebraicNumber2Expr(edu.jas.poly.AlgebraicNumber<edu.jas.arith.BigRational> coeff) throws java.lang.ArithmeticException, java.lang.ClassCastException
java.lang.ArithmeticException
java.lang.ClassCastException
public IAST quotIntegral2Expr(edu.jas.integrate.QuotIntegral<edu.jas.arith.BigRational> integral)
Integral
into a matheclipse expressionintegral
- the JAS Integralpublic static edu.jas.arith.ModIntegerRing option2ModIntegerRing(ISignedNumber option)
public static IComplex jas2Complex(edu.jas.poly.Complex<edu.jas.arith.BigRational> c)
public static INumber jas2Numeric(edu.jas.poly.Complex<edu.jas.arith.BigRational> c, double epsilon)
public static INumber jas2Numeric(org.apache.commons.math4.complex.Complex c, double epsilon)
public static java.lang.Object[] rationalFromRationalCoefficientsFactor(edu.jas.poly.GenPolynomialRing<edu.jas.arith.BigRational> fac, edu.jas.poly.GenPolynomial<edu.jas.arith.BigRational> A)
fac
- result polynomial factory.A
- polynomial with BigRational coefficients to be converted.