evala/Minpoly
minimal polynomial of an algebraic number (or function)
Calling Sequence
Parameters
Description
Examples
Compatibility
evala(Minpoly(a, x, K))
a
-
algebraic number or function
x
name
K
(optional) set of algebraic numbers or functions defining an extension field
The Minpoly function is a placeholder for representing the minimal polynomial of an algebraic number (or function) a. It is used in conjunction with evala.
The call evala(Minpoly(a, x)) computes the monic minimal polynomial of a in the variable x over the field of rational numbers (or multivariate rational functions). The resulting polynomial will not contain any algebraic numbers or functions.
The call evala(Minpoly(a, x, K)) computes the monic minimal polynomial of a in the variable x over the field K resulting from an extension of the rational numbers (or multivariate rational functions) by the algebraic numbers (or functions) in K. The resulting polynomial will only contain algebraic numbers or functions from F in its coefficients.
The variable x cannot occur in either a or K; otherwise, an error will be raised.
The algebraic numbers and functions in both a and K can be given either in radical or RootOf notation. A mixture or radicals and RootOfs is not supported. The coefficients of the resulting polynomial will be returned in the same form as K (if specified).
If the algebraic numbers and functions in K do not form a syntactical subset of the algebraic numbers and functions occurring in a, evala/Algfield will be used to rewrite a as an element of an appropriate extension field of F. This may not always succeed, and as a result, the polynomial returned may not be of minimal degree in that case.
alias⁡sqrt2=RootOf⁡x2−2,index=1:
alias⁡i=RootOf⁡x2+1,index=1:
alias⁡sqrty=RootOf⁡x2−y,x:
evala⁡Minpoly⁡1+sqrt2,x
x2−2⁢x−1
evala⁡Minpoly⁡sqrt2+sqrty,x
x4−2⁢y+2⁢x2+y2−4⁢y+4
evala⁡Minpoly⁡sqrt2⁢sqrty,x
x2−2⁢y
Specifying an extension field.
alias⁡α=RootOf⁡x4+1,index=1:
evala⁡Minpoly⁡α,x,i
x2−i
evala⁡Minpoly⁡α,x,sqrt2
−sqrt2⁢x+x2+1
Using radical instead of RootOf notation:
evala⁡Minpoly⁡−114,x,I
x2−I
f≔evala⁡Minpoly⁡−114,x,sqrt⁡2
f≔−2⁢x+x2+1
eval⁡f,x=−114
−2⁢−114+1+I
radnormal⁡
0
If the algebraic numbers and functions are not independent, i.e., they do not form a field, or if the algebraic numbers and functions in K do not occur in a, the resulting polynomial may not be of minimal degree. In the following example, Maple is unable to tell whether β2 equals sqrt2 or -sqrt2.
alias⁡β=RootOf⁡x4−2:
evala⁡Minpoly⁡β,x,sqrt2
x4−2
In this example, using an indexed RootOf will help.
evala⁡Minpoly⁡RootOf⁡x4−2,index=1,x,sqrt2
x2−sqrt2
evala⁡Minpoly⁡RootOf⁡x4−2,index=2,x,sqrt2
x2+sqrt2
The evala/Minpoly command was introduced in Maple 2020.
For more information on Maple 2020 changes, see Updates in Maple 2020.
See Also
Algfield
evala
Norm
PolynomialTools[MinimalPolynomial]
RootOf
Download Help Document