public class RootFactory extends java.lang.Object
Constructor and Description |
---|
RootFactory() |
Modifier and Type | Method and Description |
---|---|
static <C extends GcdRingElem<C> & Rational> |
algebraicRoots(GenPolynomial<C> f)
Roots as real and complex algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
complexAlgebraicNumbers(GenPolynomial<C> f)
Complex algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
complexAlgebraicNumbers(GenPolynomial<C> f,
BigRational eps)
Complex algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
complexAlgebraicNumbersComplex(GenPolynomial<Complex<C>> f)
Complex algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
complexAlgebraicNumbersComplex(GenPolynomial<Complex<C>> f,
BigRational eps)
Complex algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
decimalRoots(AlgebraicRoots<C> ar,
BigRational eps)
Roots as real and complex decimal numbers.
|
static <C extends GcdRingElem<C> & Rational> |
decimalRoots(GenPolynomial<C> f,
BigRational eps)
Roots as real and complex decimal numbers.
|
static <C extends GcdRingElem<C> & Rational> |
filterOutRealRoots(GenPolynomial<C> f,
java.util.List<Complex<BigDecimal>> c,
java.util.List<BigDecimal> r,
BigRational eps)
Filter real roots from complex roots.
|
static <C extends GcdRingElem<C> & Rational> |
filterOutRealRoots(GenPolynomial<C> f,
java.util.List<ComplexAlgebraicNumber<C>> c,
java.util.List<RealAlgebraicNumber<C>> r)
Filter real roots from complex roots.
|
static <C extends GcdRingElem<C> & Rational> |
isRealRoot(GenPolynomial<C> f,
Complex<BigDecimal> c,
BigDecimal r,
BigRational eps)
Is complex decimal number a real root of a polynomial.
|
static <C extends GcdRingElem<C> & Rational> |
isRealRoot(GenPolynomial<C> f,
ComplexAlgebraicNumber<C> c,
RealAlgebraicNumber<C> r)
Is complex algebraic number a real root of a polynomial.
|
static <C extends GcdRingElem<C> & Rational> |
isRoot(GenPolynomial<C> f,
ComplexAlgebraicNumber<C> r)
Is complex algebraic number a root of a polynomial.
|
static <C extends GcdRingElem<C> & Rational> |
isRoot(GenPolynomial<C> f,
RealAlgebraicNumber<C> r)
Is real algebraic number a root of a polynomial.
|
static <C extends GcdRingElem<C> & Rational> |
isRootComplex(GenPolynomial<Complex<C>> f,
ComplexAlgebraicNumber<C> r)
Is complex algebraic number a root of a complex polynomial.
|
static <C extends GcdRingElem<C> & Rational> |
realAlgebraicNumbers(GenPolynomial<C> f)
Real algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
realAlgebraicNumbers(GenPolynomial<C> f,
BigRational eps)
Real algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
realAlgebraicNumbersField(GenPolynomial<C> f)
Real algebraic numbers from a field.
|
static <C extends GcdRingElem<C> & Rational> |
realAlgebraicNumbersField(GenPolynomial<C> f,
BigRational eps)
Real algebraic numbers from a field.
|
static <C extends GcdRingElem<C> & Rational> |
realAlgebraicNumbersIrred(GenPolynomial<C> f)
Real algebraic numbers from a irreducible polynomial.
|
static <C extends GcdRingElem<C> & Rational> |
realAlgebraicNumbersIrred(GenPolynomial<C> f,
BigRational eps)
Real algebraic numbers from a irreducible polynomial.
|
static <C extends GcdRingElem<C> & Rational> |
rootRefine(AlgebraicRoots<C> a,
BigRational eps)
Root refinement of real and complex algebraic numbers.
|
static <C extends GcdRingElem<C> & Rational> |
rootsOfUnity(AlgebraicRoots<C> ar)
Roots of unity of real and complex algebraic numbers.
|
public RootFactory()
public static <C extends GcdRingElem<C> & Rational> boolean isRoot(GenPolynomial<C> f, RealAlgebraicNumber<C> r)
f
- univariate polynomial.r
- real algebraic number.public static <C extends GcdRingElem<C> & Rational> java.util.List<RealAlgebraicNumber<C>> realAlgebraicNumbers(GenPolynomial<C> f)
f
- univariate polynomial.public static <C extends GcdRingElem<C> & Rational> java.util.List<RealAlgebraicNumber<C>> realAlgebraicNumbers(GenPolynomial<C> f, BigRational eps)
f
- univariate polynomial.eps
- rational precision.public static <C extends GcdRingElem<C> & Rational> java.util.List<RealAlgebraicNumber<C>> realAlgebraicNumbersField(GenPolynomial<C> f)
f
- univariate polynomial.public static <C extends GcdRingElem<C> & Rational> java.util.List<RealAlgebraicNumber<C>> realAlgebraicNumbersField(GenPolynomial<C> f, BigRational eps)
f
- univariate polynomial.eps
- rational precision.public static <C extends GcdRingElem<C> & Rational> java.util.List<RealAlgebraicNumber<C>> realAlgebraicNumbersIrred(GenPolynomial<C> f)
f
- univariate irreducible polynomial.public static <C extends GcdRingElem<C> & Rational> java.util.List<RealAlgebraicNumber<C>> realAlgebraicNumbersIrred(GenPolynomial<C> f, BigRational eps)
f
- univariate irreducible polynomial.eps
- rational precision.public static <C extends GcdRingElem<C> & Rational> boolean isRoot(GenPolynomial<C> f, ComplexAlgebraicNumber<C> r)
f
- univariate polynomial.r
- complex algebraic number.public static <C extends GcdRingElem<C> & Rational> boolean isRootComplex(GenPolynomial<Complex<C>> f, ComplexAlgebraicNumber<C> r)
f
- univariate complex polynomial.r
- complex algebraic number.public static <C extends GcdRingElem<C> & Rational> boolean isRealRoot(GenPolynomial<C> f, ComplexAlgebraicNumber<C> c, RealAlgebraicNumber<C> r)
f
- univariate polynomial.c
- complex algebraic number.r
- real algebraic number.public static <C extends GcdRingElem<C> & Rational> boolean isRealRoot(GenPolynomial<C> f, Complex<BigDecimal> c, BigDecimal r, BigRational eps)
f
- univariate polynomial.c
- complex decimal number.r
- real decimal number.eps
- desired precision.public static <C extends GcdRingElem<C> & Rational> java.util.List<ComplexAlgebraicNumber<C>> complexAlgebraicNumbersComplex(GenPolynomial<Complex<C>> f)
f
- univariate polynomial.public static <C extends GcdRingElem<C> & Rational> java.util.List<ComplexAlgebraicNumber<C>> complexAlgebraicNumbersComplex(GenPolynomial<Complex<C>> f, BigRational eps)
f
- univariate polynomial.eps
- rational precision.public static <C extends GcdRingElem<C> & Rational> java.util.List<ComplexAlgebraicNumber<C>> complexAlgebraicNumbers(GenPolynomial<C> f)
f
- univariate (rational) polynomial.public static <C extends GcdRingElem<C> & Rational> java.util.List<ComplexAlgebraicNumber<C>> complexAlgebraicNumbers(GenPolynomial<C> f, BigRational eps)
f
- univariate (rational) polynomial.eps
- rational precision.public static <C extends GcdRingElem<C> & Rational> java.util.List<ComplexAlgebraicNumber<C>> filterOutRealRoots(GenPolynomial<C> f, java.util.List<ComplexAlgebraicNumber<C>> c, java.util.List<RealAlgebraicNumber<C>> r)
f
- univariate polynomial.c
- list of complex algebraic numbers.r
- list of real algebraic numbers.public static <C extends GcdRingElem<C> & Rational> java.util.List<Complex<BigDecimal>> filterOutRealRoots(GenPolynomial<C> f, java.util.List<Complex<BigDecimal>> c, java.util.List<BigDecimal> r, BigRational eps)
f
- univariate polynomial.c
- list of complex decimal numbers.r
- list of real decimal numbers.eps
- desired precision.public static <C extends GcdRingElem<C> & Rational> AlgebraicRoots<C> algebraicRoots(GenPolynomial<C> f)
f
- univariate polynomial.public static <C extends GcdRingElem<C> & Rational> AlgebraicRoots<C> rootsOfUnity(AlgebraicRoots<C> ar)
ar
- container of real and complex algebraic numbers.public static <C extends GcdRingElem<C> & Rational> void rootRefine(AlgebraicRoots<C> a, BigRational eps)
a
- container of real and complex algebraic numbers.eps
- desired precision for root intervals and rectangles.public static <C extends GcdRingElem<C> & Rational> DecimalRoots<C> decimalRoots(GenPolynomial<C> f, BigRational eps)
f
- univariate polynomial.eps
- desired precision.public static <C extends GcdRingElem<C> & Rational> DecimalRoots<C> decimalRoots(AlgebraicRoots<C> ar, BigRational eps)
ar
- container for real and complex algebraic roots.eps
- desired precision.