I am working on an algorithm to solve problems of the form $Ax = b$. In this problem, I expect $x$ to be a polynomial(of arbitrary degree greater than 1, i.e., nonlinear). I am new to Python and finiding it difficult to implement this condition in Python. Any suggestion(s) or reference(s) will be highly appreciated.
$A$ is an $m \times n$ matrix while $b$ is an $m \times 1$ vector. The polynomial $x$ is of arbitrary order $n$