svelezg / linear_transforms

4 fun code of linear transformations with animations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linear_transforms

TLDNR: 4 fun code of linear transformations 2D and 3D animations.

Authors

In our linear algebra courses, most of us come to fear or despise matrix multiplication. Doing it by hand is a tedious procedure full of arithmetic operations very prone to errors. Luckily computers are there to handle the arithmetic so we can focus on the cool part of it. That being, what they mean and do.

This repository contains code for generating animations of 2D and 3D linear transformations. You can go to the formal definition or look at the animations and notice how the origin does not change, or the lines bend and do remain parallel.

Here are some of the results, enjoy!!

Files

The files to be executed are:

2D

  • 2D_main_v00.py
  • 2D_main_v01.py
  • 2D_transformations.py
  • 2D_visualization_v01.py
  • 2D_visualization_v00.py

3D

  • 3D_main_v00.py
  • 3D_main_v01.py
  • 3D_visualization_v01.py
  • 3D_visualization_v00.py

The main files are the code entry point The visualization files contain the auxiliary function called by main In v01 besides the grid, base vectors (i j or i, j, k ) together with an eigenvector are plotted

About

4 fun code of linear transformations with animations.


Languages

Language:Python 100.0%