The pmin command takes as argument an algebraic number, and
an optional second argument of a variable name.
pmin returns the the monic polynomial of smallest degree with integer
coefficents which has the algebraic number as a root. If there is a
second argument, the polynomial will use that as a variable.
Input:
Output:
Input:
Output:
Note that (√2 + √3)2 = 5 + 2√6 and so ((√2 + √3)2 − 5)2 = 24, which can be rewritten as (√2 + √3)4 − 10 (√2 + √3)2 + 1 = 0.
Input:
Output:
Input:
Output:
Input:
Output:
Input:
Output: