Matrices and Python
Dimitrios Mitsotakis · 2023
Without exaggeration, most of the methods people use to solve approximately problems in physical sciences lead to linear algebra problems. Even approximations to solutions of nonlinear equations can be found solving linear equations. This chapter reviews some material from the field of linear algebra. It introduces the modules NumPy and SciPy and starts performing scientific computations with them. The readers learn how to draw simple graphs on the screen of their computer using the module MatPlotLib. The chapter provides a revision of matrices and their properties. Matrices are useful. The main reason is because people can perform operations with them, such as addition, multiplication etc. Multiplication between two matrices is not as simple as the multiplication between a scalar and a matrix. Matrices with special structure can lead to efficient algorithms. Matrices with many zero entries are special matrices called sparse .