Given a negative discriminant D, returns the Hilbert class polynomial, defined as the minimal polynomial of j(tau), where Z[tau] is an imaginary quadratic order of discriminant D.
Given a negative discriminant D congruent to 1 modulo 8, returns the Weber class polynomial, defined as the minimal polynomial of f(tau), where Z[tau] is an imaginary quadratic order of discriminant D and f is a particular normalized Weber function generating the same class field as j(tau). A root f(tau) of the Weber class polynomial is an integral unit generating the ring class field related to the corresponding root j(tau) of the Hilbert class polynomial by the expression[Next][Prev] [Right] [Left] [Up] [Index] [Root]j(tau) = ((f(tau)^(24) - 16)^3 /f(tau)^(24)),
where ( GCD)(D, 3) = 1, and
j(tau) = ((f(tau)^8 - 16)^3 /f(tau)^8),
if 3 divides D. For further details, consult Yui and Zagier [YZ97].