def ode_nth_linear_constant_coeff_variation_of_parameters(eq, func, order, match):
 gensol = ode_nth_linear_constant_coeff_homogeneous(eq, func, order, match, returns='both')
 match.update(gensol)
 return _solve_variation_of_parameters(eq, func, order, match)

def ode_nth_linear_constant_coeff_variation_of_parameters ( eq , func , order , match ) : gensol = ode_nth_linear_constant_coeff_homogeneous ( eq , func , order , match , returns = 'both' ) match . update ( gensol ) return _solve_variation_of_parameters ( eq , func , order , match )
solves an nth order linear differential equation with constant coefficients using the method of variation of parameters .