(eq, param=symbols("t", integer=True))
Solves linear diophantine equations.

    A linear diophantine equation is an equation of the form `a_{1}x_{1} +
    a_{2}x_{2} + .. + a_{n}x_{n} = 0` where `a_{1}, a_{2}, ..a_{n}` are
    integer constants and `x_{1}, x_{2}, ..x_{n}` are integer variables.

    Usage
    =====

    ``diop_linear(eq)``: Returns a tuple containing solutions to the
    diophantine equation ``eq``. Values in the tuple is arranged in the same
    order as the sorted variables.

    Details
    =======

    ``eq`` is a linear diophantine equation which is assumed to be zero.
    ``param`` is the parameter to be used in the solution.

    Examples
    ========

    >>> from sympy.solvers.diophantine import diop_linear
    >>> from sympy.abc import x, y, z, t
    >>> from sympy import Integer
    >>> diop_linear(2*x - 3*y - 5) #solves equation 2*x - 3*y -5 = 0
    (-3*t - 5, -2*t - 5)

    Here x = -3*t - 5 and y = -2*t - 5

    >>> diop_linear(2*x - 3*y - 4*z -3)
    (-3*t - 4*z - 3, -2*t - 4*z - 3,  z)

    See Also
    ========

    diop_quadratic(), diop_ternary_quadratic(), diop_general_pythagorean(),
    diop_general_sum_of_squares()
Solves linear diophantine equations.
Solves linear diophantine equations .
def diop_linear(eq, param=symbols("t", integer=True)):
    """
    Solves linear diophantine equations.

    A linear diophantine equation is an equation of the form `a_{1}x_{1} +
    a_{2}x_{2} + .. + a_{n}x_{n} = 0` where `a_{1}, a_{2}, ..a_{n}` are
    integer constants and `x_{1}, x_{2}, ..x_{n}` are integer variables.

    Usage
    =====

    ``diop_linear(eq)``: Returns a tuple containing solutions to the
    diophantine equation ``eq``. Values in the tuple is arranged in the same
    order as the sorted variables.

    Details
    =======

    ``eq`` is a linear diophantine equation which is assumed to be zero.
    ``param`` is the parameter to be used in the solution.

    Examples
    ========

    >>> from sympy.solvers.diophantine import diop_linear
    >>> from sympy.abc import x, y, z, t
    >>> from sympy import Integer
    >>> diop_linear(2*x - 3*y - 5) #solves equation 2*x - 3*y -5 = 0
    (-3*t - 5, -2*t - 5)

    Here x = -3*t - 5 and y = -2*t - 5

    >>> diop_linear(2*x - 3*y - 4*z -3)
    (-3*t - 4*z - 3, -2*t - 4*z - 3,  z)

    See Also
    ========

    diop_quadratic(), diop_ternary_quadratic(), diop_general_pythagorean(),
    diop_general_sum_of_squares()
    """
    var, coeff, diop_type = classify_diop(eq)

    if diop_type == "linear":
        return _diop_linear(var, coeff, param)
def diop_linear ( eq , param = symbols ( "t" , integer = True ) ) : var , coeff , diop_type = classify_diop ( eq ) if diop_type == "linear" : return _diop_linear ( var , coeff , param )