Skip to content

Instantly share code, notes, and snippets.

@qoelet
Created January 24, 2014 19:08
Show Gist options
  • Save qoelet/8603949 to your computer and use it in GitHub Desktop.
Save qoelet/8603949 to your computer and use it in GitHub Desktop.
lhs = reshape([2, -1, 0, -1, 2, -3, 0, -1, 4], 3, 3)
rhs = reshape([0, -1, 4], 3, 1)
soln = lhs\rhs
print((lhs * soln) == rhs) # prove it so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment