def diop_quadratic(eq, param=symbols('t', integer=True)):
 (var, coeff, diop_type) = classify_diop(eq, _dict=False)
 if (diop_type == 'binary_quadratic'):
  return _diop_quadratic(var, coeff, param)

def diop_quadratic ( eq , param = symbols ( 't' , integer = True ) ) : ( var , coeff , diop_type ) = classify_diop ( eq , _dict = False ) if ( diop_type == 'binary_quadratic' ) : return _diop_quadratic ( var , coeff , param )
solves quadratic diophantine equations .