Skip to content

Instantly share code, notes, and snippets.

@mGalarnyk
Last active January 10, 2017 05:10
Show Gist options
  • Save mGalarnyk/2dc8c664f7fed1fb51c1759c038ab15f to your computer and use it in GitHub Desktop.
Save mGalarnyk/2dc8c664f7fed1fb51c1759c038ab15f to your computer and use it in GitHub Desktop.
import numpy as np
# Solving following system of linear equation
# 1a + 1b = 35
# 2a + 4b = 94
a = np.array([[1, 1],[2,4]])
b = np.array([35, 94])
print(np.linalg.solve(a,b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment