Skip to content

Instantly share code, notes, and snippets.

@SiestaMadokaist
Last active January 2, 2017 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SiestaMadokaist/2f3674e7ac53c6b73abfcb906557ef92 to your computer and use it in GitHub Desktop.
Save SiestaMadokaist/2f3674e7ac53c6b73abfcb906557ef92 to your computer and use it in GitHub Desktop.
# x - 2.y + z = 9
# 2.x - y = 4
# y + z = 12
[x] [1, -2, 1] [9]
[y] * [2, -1, 0] = [4]
[z] [0, 1, 1] [12]
# if we want to find out the x, y, and z, we can just
[x] [9]
[y] = M.inverse * [4]
[z] [12]
# where M is the matrix (3 x 3) defined above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment