Using linear algebra in programming

I am starting to study linear algebra, but it is very mathematical, and I do not know its actual use in programming. I heard that this is a very useful subject for movements (animation) and graphics. I thought that I could make my learning process for linear algebra more fun if I could learn it from my application through programming. It learns in practice, not just on paper.

Since I am still studying the very basics of linear algebra, I wonder where and how the basic concepts of linear algebra are used in programming? What interesting things can be done with basic knowledge of linear algebra, such as echelon line form, LU deposits, linear combination / system, etc. Any tutorials in any language such as Java, ActionScript, PHP or others involved in using the basic concepts of linear algebra to create interesting simple things?

Thanks!

+6
source share
4 answers

Matrices and their transformations are used to position, rotate, and scale elements in Flash, iOS, and Android. Take a look at the conversion matrix wiki , android api and cool flash version

+5
source

As you said, the most likely place you will find in graphic and game programming. You do not say what language you want to program, so I will take Java:

http://www.java3d.org/

All methods are not created equal. You will use LU decomposition and eigenvalues ​​more if you are doing scientific calculations.

This is a very good book. Do not be fooled by the date: mathematics has not changed. I also recommend watching OpenGL .

+2
source

All simple graphs are made using linear algebra ...

Create a new console project and try your skills ...

+1
source

Probably the most important application of linear algebra in programming is Modular Arithmetic .

As for the examples you provided, the relationship is completely opposite. Programming is used to implement these algorithms; algorithms are not used for general programming.

0
source

Source: https://habr.com/ru/post/890855/


All Articles