def transformation_to_DN(eq):
 (var, coeff, diop_type) = classify_diop(eq, _dict=False)
 if (diop_type == 'binary_quadratic'):
  return _transformation_to_DN(var, coeff)

def transformation_to_DN ( eq ) : ( var , coeff , diop_type ) = classify_diop ( eq , _dict = False ) if ( diop_type == 'binary_quadratic' ) : return _transformation_to_DN ( var , coeff )
this function transforms general quadratic .