I’ve just finished working through the Udacity course over at https://www.udacity.com/course/linear-algebra-refresher-course–ud953
The idea of the course is to not just learn the mechanics of linear algebra, but also to understand how to write your own linear algebra program code.
The course is taught in Python, but the instructor said to use any language, so I implemented everything in Go.
It took me a couple of months to complete the course in my spare time.
One of the problems I faced with using Go is that the quizzes at the end of each section expected outputs to be rounded to 3 decimal places. Weirdly, Go doesn’t have a
math.Round function so I ended up making my own (https://adrianhesketh.com/2017/04/14/rounding-in-go/)
There were also a few bugs in the course materials and questions, but the discussion forums were helpful. Grapher on OSX was also helpful for visualising lines and planes, as was a quick chat with my colleague https://jameshall.blog to check over some algebra operations with me. It turned out I was doing it right after all. 🙂
The libraries I made as part of the course covered vector operations (e.g. scaling, multiplication, equality checks, are vectors parallel / orthogonal), lines (equations) and whether the lines are parallel or intersect etc., then moved onto systems of equations: Triangular Form, Reduced Row-Echelon Form (RREF) and Gaussian elimination.
I wrote unit tests for everything, so the library has 100% code coverage. The answers for each of the quizzes in the course are in the
cmd subdirectory. (I’m not spoiling anything, the course includes the answers)
The code is available at https://github.com/a-h/linear/