(eq)
Returns the transformation Matrix from general ternary quadratic equation
    `eq` to normal form.

    General form of the ternary quadratic equation is `ax^2 + by^2 cz^2 + dxy +
    eyz + fxz`. This function returns a 3X3 transformation Matrix which
    transforms the former equation to the form `ax^2 + by^2 + cz^2 = 0`. This
    is not used in solving ternary quadratics. Only implemented for the sake
    of completeness.
Returns the transformation Matrix from general ternary quadratic equation
    `eq` to normal form.
Returns the transformation Matrix from general ternary quadratic equation eq to normal form .
def transformation_to_normal(eq):
    """
    Returns the transformation Matrix from general ternary quadratic equation
    `eq` to normal form.

    General form of the ternary quadratic equation is `ax^2 + by^2 cz^2 + dxy +
    eyz + fxz`. This function returns a 3X3 transformation Matrix which
    transforms the former equation to the form `ax^2 + by^2 + cz^2 = 0`. This
    is not used in solving ternary quadratics. Only implemented for the sake
    of completeness.
    """
    var, coeff, diop_type = classify_diop(eq)

    if diop_type == "homogeneous_ternary_quadratic":
        return _transformation_to_normal(var, coeff)
def transformation_to_normal ( eq ) : var , coeff , diop_type = classify_diop ( eq ) if diop_type == "homogeneous_ternary_quadratic" : return _transformation_to_normal ( var , coeff )