Gcd - Greatest common divisor of polynomials over algebraic extensions
|
Calling Sequence
|
|
evala(Gcd(P, Q, 'p', 'q'), opts)
|
|
Parameters
|
|
P, Q
|
-
|
polynomials over an algebraic number or function field.
|
p, q
|
-
|
(optional) names
|
opts
|
-
|
(optional) an option name or a set of option names.
|
|
-
|
Options currently supported: 'independent'.
|
|
|
|
|
Description
|
|
•
|
This function computes the monic greatest common divisor of two polynomials with coefficients in an algebraic function field or an algebraic number field.
|
|
Since the ordering of objects may vary from a session to another, the leading coefficient may change accordingly.
|
•
|
The optional arguments p and q are respectively assigned the co-factors of P and Q. Namely, , where G is the Gcd.
|
•
|
The computation is performed in the domain , where:
|
|
x is the set of names in P and Q which do not appear inside a RootOf or a radical,
|
|
K is a field generated over the rational numbers by the coefficients of P and Q.
|
•
|
Partial factorizations are preserved. The result may be a product of powers of expanded polynomials.
|
•
|
Algebraic numbers and functions occurring in the results are reduced modulo their minimal polynomial (see Normal).
|
•
|
The RootOf and the radicals defining the algebraic numbers must form an independent set of algebraic quantities, otherwise an error is returned. Note that this condition needs not be satisfied if the expression contains only algebraic numbers in radical notation (i.e. 2^(1/2), 3^(1/2), 6^(1/2)). For, a basis over Q for the radicals can be computed by Maple in this case.
|
•
|
To skip the independence checking, use the option 'independent'.
|
•
|
If a or b contains functions, their arguments are normalized recursively and the functions are frozen before the computation proceeds.
|
•
|
Other objects are frozen and considered as variables.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
The second argument below is not a polynomial. Therefore, an error is returned:
>
|
|
If a polynomial defining a RootOf is reducible, the RootOf does not generate a well-defined field. In some cases, an error is returned:
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
To pretend that all the defining polynomials are irreducible, use the option 'independent':
>
|
|
| (12) |
Alternatively, use indexed RootOfs:
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
|
|