polytools(deprecated)/minpoly - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : polytools(deprecated)/minpoly

polytools

  

minpoly

  

find minimum polynomial from an approximate root

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

minpoly(r, n)

minpoly(r, n, acc)

Parameters

r

-

approximate root

n

-

degree of the polynomial sought

acc

-

desired accuracy of the approximation

Description

• 

Important: The polytools package has been deprecated. Use the superseding command PolynomialTools[MinimalPolynomial] instead.

• 

The minpoly function uses the lattice algorithm to find a polynomial of degree n (or less) with small integer coefficients which has the given approximation r of an algebraic number as one of its roots.

• 

The root r may be real or complex.  It may be input as a floating-point approximation to a root or as an exact algebraic number.  In the latter case, it will first be evaluated in floating-point at Digits precision.

• 

If a third argument is specified, then the value accfr is given the same weight as the coefficients in determining the polynomial. The default value for acc is 10^(Digits-2).

Examples

Important: The polytools package has been deprecated. Use the superseding command PolynomialTools[MinimalPolynomial] instead.

withpolytools:

revalf1+sqrt2

r2.414213562

(1)

minpolyr,2

_X22_X1

(2)

r1+sqrt2

r1+2

(3)

minpolyr,2

_X22_X1

(4)

minpoly1.234,3

22_X35_X2+61_X109

(5)

fsolve,_X

1.234000001

(6)

revalfsqrt2+sqrt3

r1.414213562+1.732050808I

(7)

minpolyr,4

_X4+2_X2+25

(8)

See Also

IntegerRelations[LLL]

PolynomialTools[MinimalPolynomial]