Solving systems of linear equations with numpy The above system of linear equations can be solved using numpy matrices as shown below.