Last active
January 10, 2017 05:10
-
-
Save mGalarnyk/2dc8c664f7fed1fb51c1759c038ab15f to your computer and use it in GitHub Desktop.
Solve system of equations using Python for the blog post https://medium.com/@GalarnykMichael/solving-system-of-linear-equations-using-python-645ad1904cec#.5y0emh8w6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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