Congratulations! You have completed your journey into linear algebra operations with NumPy.

The Python library NumPy provides a powerful tool to programmatically perform linear algebra. A fundamental building block of NumPy, the NumPy array, allows us to represent vectors and matrices. These arrays can perform operations directly, such as addition and scalar multiplication using + and *, rerspectively.

NumPy also has built-in functions that allow us to perform more advanced operations like dot products, transposes, and matrix multiplication.

Finally, NumPy has a numpy.linalg sublibrary that provides more advanced functionality. This includes finding the norm (or magnitude/length) of a vector, finding the inverse of a square matrix, and solving a system of linear equations in Ax=b form.

All this functionality will allow us to use Python and NumPy to solve many linear algebra problems, including linear regression, in future lessons and articles.


In script.py is a similar system of linear equations as the previous exercise. However, this time there are four unknowns variables instead of three!

Using what you have learned in this lesson, find the unknowns a, b, c, and d. If you get stuck, refer back to the previous exercise or take a peek at solution.py.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?