42.3: Review of Python Numpy Package
( \newcommand{\kernel}{\mathrm{null}\,}\)
Direct Link to the Youtube video.
The Python Numpy library has a “Matrix” object which can be initialized as follows:
Python can solve equations in the Ax=b format with the numpy.linalg
library. For example:
The numpy.linalg
library is just a subset of the scipy.linalg
library. Oddly you can’t load the SciPy library the same way. Instead you can call it as follows:
Convert the following system of linear equations to numpy matrices and solve using a python linear algebra solver 18x+21y=22672x−3y=644