Exercises and examples for linear algebra using Python and NumPy, covering topics such as vectors, matrices, and linear transformations.
This exercise includes
Technical SkillsTry this exercise
Create an account and get immediate access to this exercise
Already have an account?
Skill level
BEGINNER
Time to complete
5 hours
Access
Free
Prerequisites
None
See the content included in this exercise
Get an overview of linear algebra's role in science and engineering, and preview how you will use Python and NumPy to work with vectors and matrices.
Learn to represent vectors in Python using native lists and NumPy arrays, then complete a function that returns the chosen format.
Learn to represent matrices in Python using nested lists and NumPy arrays, and complete a function that generates matrices with random values.
Learn to add and subtract vectors element by element using pure Python lists and NumPy array operations.
Implement the dot product and matrix product in pure Python and with NumPy, handling size compatibility errors.


Continue learning about this exercise's topics

Exercises and examples for linear algebra using Python and NumPy, covering topics such as vectors, matrices, and linear transformations.
Try this exercise
Learn Object Oriented Programming concepts using Python, from basic to advanced topics. This tutorial covers classes, inheritance, polymorphism, encapsulation, and more. Ideal for beginners and experienced developers looking to deepen…
Try this exerciseLearn how to use and create Python modules, from basic imports to advanced concepts
Try this exerciseMaster Python best practices through hands-on exercises covering clean code, testing, error handling, and code organization. Perfect for developers looking to write more maintainable and professional Python code.
Try this exercise
Practice Python Lists and tuples (arrays) with interactive auto-graded exercises and video solutions
Try this exercise
Learn and master functional programming by doing auto-graded interactive exercises.
Try this exercise