how turn system of sympy equations matrix form?
for example, how turn system this:
equation_one = 4*a*x + 3*b*y equation_two = 2*b*x + 1*a*y
into system this:
matrix_form = ([equation_one, equation_two], [x, y])
that return this:
[[4*a, 3*b], [2*b, 1*a]]
does function matrix_form() exist?
after searching, found
sympy.linear_eq_to_matrix(equations, *symbols)
this has solved problem.
Comments
Post a Comment