def diop_general_sum_of_squares(eq, limit=1):
 (var, coeff, diop_type) = classify_diop(eq, _dict=False)
 if (diop_type == 'general_sum_of_squares'):
  return _diop_general_sum_of_squares(var, (- coeff[1]), limit)

def diop_general_sum_of_squares ( eq , limit = 1 ) : ( var , coeff , diop_type ) = classify_diop ( eq , _dict = False ) if ( diop_type == 'general_sum_of_squares' ) : return _diop_general_sum_of_squares ( var , ( - coeff [ 1 ] ) , limit )
solves the equation x_{1}^2 + x_{2}^2 + .